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