From 410d17b5a9415f6962a378ee618e9048e846fb9c Mon Sep 17 00:00:00 2001 From: Pasquale Congiusti Date: Mon, 26 Aug 2024 09:47:44 +0200 Subject: [PATCH] fix(ci): badge permission --- .github/actions/automatic-updates/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/automatic-updates/action.yml b/.github/actions/automatic-updates/action.yml index 6672b9a931..59e64b7356 100644 --- a/.github/actions/automatic-updates/action.yml +++ b/.github/actions/automatic-updates/action.yml @@ -77,7 +77,8 @@ runs: grep -o -P '(?<=\(statements\))(.+)(?=%)' coverage.mod.out | xargs > coverage touch badge.out wget https://gobinaries.com/github.com/AlexBeauchemin/gobadge@v0.2.0 -O gobadge - gobadge -filename=coverage -target=badge.out + chmod +x gobadge + ./gobadge -filename=coverage -target=badge.out - name: Convert badge to adoc shell: bash @@ -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:$CI_TOKEN@github.com/$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