Merge pull request #59 from yumemi-inc/update-contributors #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Contributors | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
env: | |
UPDATE_CONTRIBUTORS_BRANCH: update-contributors | |
jobs: | |
add-contributors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Delete old branch (If it exists) | |
run: git push origin --delete ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} | |
continue-on-error: true | |
- name: Create and push new branch | |
run: | | |
git branch ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} | |
git push origin ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} | |
# https://github.com/BobAnkh/add-contributors | |
- uses: BobAnkh/[email protected] | |
with: | |
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: ${{ env.UPDATE_CONTRIBUTORS_BRANCH }} | |
PULL_REQUEST: 'main' | |
IGNORED_CONTRIBUTORS: 'GitHub Web Flow' |