diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 5e889b73ae..473999513b 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -51,7 +51,7 @@ jobs: CONTRIBUTORS=${{ steps.get_contributors.outputs.contributors }} sed -i 's/.*/ '"$CONTRIBUTORS"' /g' MAINTAINERS.md - - name: Commit and push changes + - name: Commit changes # https://github.com/orgs/community/discussions/26560#discussioncomment-3531273 # commit changes, but if no changes exist, then exit cleanly run: | @@ -59,4 +59,8 @@ jobs: git config user.email 'github-actions[bot]@users.noreply.github.com' git add MAINTAINERS.md git commit -m "BOT: Update contributors info in MAINTAINERS.md" || exit 0 - git push + - name: Push to ${{ github.ref_name }} + uses: CasperWA/push-protected@v2 + with: + token: ${{ secrets.METRICS_GITHUB_TOKEN }} + branch: ${{ github.ref_name }}