Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmdnk committed Jan 4, 2023
1 parent cc84924 commit e1d96f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,32 @@ jobs:
- name: Check coverage branch
id: checkCoverage
continue-on-error: true
if: steps.isMain.outcome == "success"
if: ${{ steps.isMain.outcome == "success" }}
run: |
git branch --list | grep -q coverage
- name: Create coverage branch
if: steps.isMain.outcome == "success" && steps.checkCoverage.outcome != "success"
if: ${{ steps.isMain.outcome == "success" && steps.checkCoverage.outcome != "success"}}
run: |
git branch --orphan coverage
git rm -rf .
touch README.md
git add README.md
git ci -m 'initial commit of coverage'
- name: Update Readme in coverage branch with Coverage Html
if: steps.isMain.outcome == "success"
if: ${{ steps.isMain.outcome == "success" }}
run: |
git checkout coverage
echo "[![test](https://github.com/rcmdnk/homebrew-file/actions/workflows/test.yml/badge.svg)](https://github.com/rcmdnk/homebrew-file/actions/workflows/test.yml)" > ./README.md
echo -e ${{ steps.coverageComment.outputs.summaryReport }} >> ./README.md
- name: Commit
if: steps.isMain.outcome == "success"
if: ${{ steps.isMain.outcome == "success" }}
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add README.md
PRE_COMMIT_ALLOW_NO_CONFIG=1 git commit -m "Update coverage"
- name: Push
if: ${{ steps.check.isMain }}
if: ${{ steps.isMain.outcome == "success" }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit e1d96f5

Please sign in to comment.