diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index d7a079b..fa25d33 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -25,10 +25,10 @@ jobs: - name: Detect changes id: check run: echo "modified=$(git diff --quiet HEAD -- docs/contributors.md && echo false || echo true)" >> "$GITHUB_OUTPUT" - - name: Commit - if: steps.check.outputs.modified == 'true' - run: git -c "user.name=GitHub Actions" -c "user.email=" commit -am "Update contributors" - name: Push to GitHub - uses: ad-m/github-push-action@master - with: - github_token: ${{secrets.DEV_MANUAL}} + if: steps.check.outputs.modified == 'true' + run: | + git -c "user.name=GitHub Actions" -c "user.email=" commit -am "Update contributors" + git push + - name: Regenerate GitHub Pages site + uses: ./.github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8fdaf5b..045d8db 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -7,6 +7,7 @@ on: paths: - docs/** - mkdocs.yml + workflow_call: workflow_dispatch: jobs: diff --git a/docs/contributors.md b/docs/contributors.md index f592f51..71266d7 100644 --- a/docs/contributors.md +++ b/docs/contributors.md @@ -2,6 +2,7 @@ This is a list of people who contributed to the roboticslab-uc3m software ecosystem. + - Ainhoamm1 - Alberto Jardón Huete (ajardon) - alicest9 diff --git a/scripts/update_contributors.py b/scripts/update_contributors.py index 2ab806b..7f04066 100644 --- a/scripts/update_contributors.py +++ b/scripts/update_contributors.py @@ -16,7 +16,6 @@ # required fine-grained PAT permissions: # * repository permissions: metadata (read-only) -# * in order to also perform a commit & push via GHA: contents (read & write) # * organization permissions: members (read-only) # also make sure to check the 'All repositories' checkbox auth = Auth.Token(os.environ.get('GITHUB_PAT_AUTH'))