Skip to content

Commit

Permalink
fix(ci): badge permission
Browse files Browse the repository at this point in the history
  • Loading branch information
squakez authored Aug 26, 2024
1 parent 44d1583 commit 410d17b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ runs:
grep -o -P '(?<=\(statements\))(.+)(?=%)' coverage.mod.out | xargs > coverage
touch badge.out
wget https://gobinaries.com/github.com/AlexBeauchemin/[email protected] -O gobadge
gobadge -filename=coverage -target=badge.out
chmod +x gobadge
./gobadge -filename=coverage -target=badge.out
- name: Convert badge to adoc
shell: bash
Expand All @@ -96,7 +97,7 @@ runs:
run: |
git config --local user.email "$CI_EMAIL"
git config --local user.name "$CI_USER"
git add -A -f && git commit -m 'chore: nightly automatic updates' || echo "No nightly automatic updates changes to commit"
git add -a -f && 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 410d17b

Please sign in to comment.