From 32ac690494bc54ade569da9b44f23990e6b8d875 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 2 Mar 2022 09:08:30 +0000 Subject: [PATCH 1/2] Update contributors.yml --- .github/workflows/contributors.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 4a73009b..5419129b 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -10,6 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Delete upstream contributor branch + run: git push origin --delete update-contributors + - name: Create up-to-date contributors branch + run: git checkout -B update-contributors - uses: BobAnkh/add-contributors@v0.2.2 with: CONTRIBUTOR: "## Contributors" From 2b6a5173da1253150369515518dab017d9763296 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 2 Mar 2022 09:12:00 +0000 Subject: [PATCH 2/2] Allow upstream delete continue on failure --- .github/workflows/contributors.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 5419129b..832abb9e 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -11,6 +11,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Delete upstream contributor branch + # Allow continue on failure to account for when the + # upstream branch is deleted or does not exist. + continue-on-error: true run: git push origin --delete update-contributors - name: Create up-to-date contributors branch run: git checkout -B update-contributors