Update contributor workflow
This commit is contained in:
parent
712bf4a42e
commit
23b8523ee3
|
@ -5,22 +5,32 @@ on:
|
|||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
add-contributors:
|
||||
delete-old-branch:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Delete old contributors-update branch
|
||||
-
|
||||
name: Delete old contributors-update branch
|
||||
uses: dawidd6/action-delete-branch@v3
|
||||
with:
|
||||
github_token: ${{secrets.GITHUB_TOKEN}}
|
||||
branches: contributors-update
|
||||
- name: Create contributors-update branch
|
||||
|
||||
add-contributors:
|
||||
runs-on: ubuntu-latest
|
||||
needs: delete-old-branch
|
||||
steps:
|
||||
-
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Create contributors-update branch
|
||||
uses: peterjgrainger/action-create-branch@v2.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
branch: 'contributors-update'
|
||||
- name: Auto-add contributors
|
||||
-
|
||||
name: Auto-add contributors
|
||||
uses: BobAnkh/add-contributors@v0.2.2
|
||||
with:
|
||||
BRANCH: 'contributors-update'
|
||||
|
|
Loading…
Reference in New Issue