Skip to content

Commit

Permalink
fix(ci): coverage badge script
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez committed Aug 28, 2024
1 parent 89cfeac commit 6d9bdaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ runs:
go tool cover -func=coverage.mod.out -o=coverage.mod.out
grep -o -P '(?<=\(statements\))(.+)(?=%)' coverage.mod.out | xargs > coverage
touch badge.out
wget https://gobinaries.com/github.com/AlexBeauchemin/[email protected] -O gobadge
curl -sf https://gobinaries.com/github.com/AlexBeauchemin/[email protected] | PREFIX=. sh
chmod +x gobadge
./gobadge -filename=coverage -target=badge.out
Expand All @@ -97,7 +97,7 @@ runs:
run: |
git config --local user.email "$CI_EMAIL"
git config --local user.name "$CI_USER"
git add README.adoc && git commit -m 'chore: nightly automatic updates' || echo "No nightly automatic updates changes to commit"
git add README.adoc CHANGELOG.md && git commit -m 'chore: nightly automatic updates' || echo "No nightly automatic updates changes to commit"
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:${{ inputs.branch-ref }} || echo "No nightly automatic updates changes to push"
# Give it a rest to avoid hitting Github API rate limit
Expand Down

0 comments on commit 6d9bdaa

Please sign in to comment.