From bacc4f3e212f1908f34559b8b6707d164157ea43 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Fri, 18 Nov 2022 10:48:10 -0500 Subject: [PATCH] chore(ci): nightly is pushed to temp branch (#26319) --- .github/workflows/nightly.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index eb659e09b4..e69b5d107a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -55,9 +55,13 @@ jobs: git config user.email hi@ionicframework.com shell: bash - name: Checkout Nightly Branch + # There are branch protection rules for our version + # branches (i.e. "6.2.x"), so we cannot name the branch + # the nightly hash as it would fall under the protection + # rule. As a result, we prefix "tmp-" to the branch. run: | - git checkout -b ${{ needs.create-nightly-hash.outputs.nightly-hash }} - git push origin ${{ needs.create-nightly-hash.outputs.nightly-hash }} + git checkout -b tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }} + git push origin tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }} shell: bash - name: Create GitHub Release run: lerna version ${{ needs.create-nightly-hash.outputs.nightly-hash }} --yes --force-publish='*' --conventional-commits --conventional-prerelease --create-release github @@ -70,6 +74,6 @@ jobs: - name: Delete Nightly Branch run: | git checkout main - git branch -D ${{ needs.create-nightly-hash.outputs.nightly-hash }} - git push origin --delete ${{ needs.create-nightly-hash.outputs.nightly-hash }} + git branch -D tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }} + git push origin --delete tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }} shell: bash