mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Update contributor workflow
This commit is contained in:
parent
712bf4a42e
commit
23b8523ee3
60
.github/workflows/contributors.yml
vendored
60
.github/workflows/contributors.yml
vendored
|
@ -5,31 +5,41 @@ on:
|
|||
- cron: '0 0 * * *'
|
||||
|
||||
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:
|
||||
runs-on: ubuntu-latest
|
||||
needs: delete-old-branch
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- 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
|
||||
uses: peterjgrainger/action-create-branch@v2.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
branch: 'contributors-update'
|
||||
- name: Auto-add contributors
|
||||
uses: BobAnkh/add-contributors@v0.2.2
|
||||
with:
|
||||
BRANCH: 'contributors-update'
|
||||
PULL_REQUEST: 'master'
|
||||
CONTRIBUTOR: '## Contributors'
|
||||
COLUMN_PER_ROW: '6'
|
||||
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
IMG_WIDTH: '100'
|
||||
FONT_SIZE: '14'
|
||||
PATH: '/CONTRIBUTORS.md'
|
||||
COMMIT_MESSAGE: 'docs(CONTRIBUTORS): update contributors'
|
||||
AVATAR_SHAPE: 'round'
|
||||
-
|
||||
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
|
||||
uses: BobAnkh/add-contributors@v0.2.2
|
||||
with:
|
||||
BRANCH: 'contributors-update'
|
||||
PULL_REQUEST: 'master'
|
||||
CONTRIBUTOR: '## Contributors'
|
||||
COLUMN_PER_ROW: '6'
|
||||
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
IMG_WIDTH: '100'
|
||||
FONT_SIZE: '14'
|
||||
PATH: '/CONTRIBUTORS.md'
|
||||
COMMIT_MESSAGE: 'docs(CONTRIBUTORS): update contributors'
|
||||
AVATAR_SHAPE: 'round'
|
||||
|
|
Loading…
Reference in a new issue