Skip to content

Commit

Permalink
ci: Create workflow for updating contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
blendthink committed Nov 1, 2023
1 parent 4088b3d commit 2f30a00
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/update-contributors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 }}
- uses: BobAnkh/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: ${{ env.UPDATE_CONTRIBUTORS_BRANCH }}
PULL_REQUEST: 'main'

0 comments on commit 2f30a00

Please sign in to comment.