Update contributor workflow

This commit is contained in:
Casper 2021-09-26 10:36:17 +02:00 committed by GitHub
parent 712bf4a42e
commit 23b8523ee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 25 deletions

View File

@ -5,31 +5,41 @@ on:
- cron: '0 0 * * *' - cron: '0 0 * * *'
jobs: jobs:
delete-old-branch:
runs-on: ubuntu-latest
continue-on-error: true
steps:
-
name: Delete old contributors-update branch
uses: dawidd6/action-delete-branch@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branches: contributors-update
add-contributors: add-contributors:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: delete-old-branch
steps: steps:
- uses: actions/checkout@v2 -
- name: Delete old contributors-update branch uses: actions/checkout@v2
uses: dawidd6/action-delete-branch@v3 -
with: name: Create contributors-update branch
github_token: ${{secrets.GITHUB_TOKEN}} uses: peterjgrainger/action-create-branch@v2.0.1
branches: contributors-update env:
- name: Create contributors-update branch GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: peterjgrainger/action-create-branch@v2.0.1 with:
env: branch: 'contributors-update'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -
with: name: Auto-add contributors
branch: 'contributors-update' uses: BobAnkh/add-contributors@v0.2.2
- name: Auto-add contributors with:
uses: BobAnkh/add-contributors@v0.2.2 BRANCH: 'contributors-update'
with: PULL_REQUEST: 'master'
BRANCH: 'contributors-update' CONTRIBUTOR: '## Contributors'
PULL_REQUEST: 'master' COLUMN_PER_ROW: '6'
CONTRIBUTOR: '## Contributors' ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
COLUMN_PER_ROW: '6' IMG_WIDTH: '100'
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}} FONT_SIZE: '14'
IMG_WIDTH: '100' PATH: '/CONTRIBUTORS.md'
FONT_SIZE: '14' COMMIT_MESSAGE: 'docs(CONTRIBUTORS): update contributors'
PATH: '/CONTRIBUTORS.md' AVATAR_SHAPE: 'round'
COMMIT_MESSAGE: 'docs(CONTRIBUTORS): update contributors'
AVATAR_SHAPE: 'round'