Skip to content

Commit bacc4f3

Browse files
authored
chore(ci): nightly is pushed to temp branch (#26319)
1 parent d7b86d7 commit bacc4f3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ jobs:
5555
git config user.email hi@ionicframework.com
5656
shell: bash
5757
- name: Checkout Nightly Branch
58+
# There are branch protection rules for our version
59+
# branches (i.e. "6.2.x"), so we cannot name the branch
60+
# the nightly hash as it would fall under the protection
61+
# rule. As a result, we prefix "tmp-" to the branch.
5862
run: |
59-
git checkout -b ${{ needs.create-nightly-hash.outputs.nightly-hash }}
60-
git push origin ${{ needs.create-nightly-hash.outputs.nightly-hash }}
63+
git checkout -b tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
64+
git push origin tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
6165
shell: bash
6266
- name: Create GitHub Release
6367
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:
7074
- name: Delete Nightly Branch
7175
run: |
7276
git checkout main
73-
git branch -D ${{ needs.create-nightly-hash.outputs.nightly-hash }}
74-
git push origin --delete ${{ needs.create-nightly-hash.outputs.nightly-hash }}
77+
git branch -D tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
78+
git push origin --delete tmp-${{ needs.create-nightly-hash.outputs.nightly-hash }}
7579
shell: bash

0 commit comments

Comments
 (0)