From f03fed12a6f119ec1d0b28f6c739163b28193b28 Mon Sep 17 00:00:00 2001 From: Casper Date: Sat, 25 Sep 2021 14:49:00 +0200 Subject: [PATCH] Update contributor workflow (#2212) * Make a PR instead of trying to directly commit to master branch * add version --- .github/workflows/contributors.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 11beb03c..2fe7a79c 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -9,10 +9,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Auto-add contributors - uses: BobAnkh/add-contributors@v0.2.1 + - name: Delete old contributors-update branch + uses: dawidd6/action-delete-branch@v3 with: - REPO_NAME: 'docker-mailserver/docker-mailserver' + 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}}