Skip to content

Merge pull request #59 from yumemi-inc/update-contributors #9

Merge pull request #59 from yumemi-inc/update-contributors

Merge pull request #59 from yumemi-inc/update-contributors #9

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'