Skip to content

Commit a52bfe6

Browse files
authored
chore(ci): clean up nightly builds (#26312)
1 parent f642c29 commit a52bfe6

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/nightly.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,22 @@ jobs:
222222
git config user.name ionitron
223223
git config user.email hi@ionicframework.com
224224
shell: bash
225+
- name: Checkout Nightly Branch
226+
run: |
227+
git checkout -b ${{ needs.create-nightly-hash.outputs.nightly-hash }}
228+
git push origin ${{ needs.create-nightly-hash.outputs.nightly-hash }}
229+
shell: bash
225230
- name: Create GitHub Release
226-
run: lerna version ${{ inputs.version }} --yes --force-publish='*' --conventional-commits --conventional-prerelease --create-release github
231+
run: lerna version ${{ needs.create-nightly-hash.outputs.nightly-hash }} --yes --force-publish='*' --conventional-commits --conventional-prerelease --create-release github
227232
env:
228233
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
229234
shell: bash
235+
# We need to push the commit changes in order for the tags
236+
# to get updated, but we don't need to keep the changelog
237+
# changes around.
238+
- name: Delete Nightly Branch
239+
run: |
240+
git checkout main
241+
git branch -D ${{ needs.create-nightly-hash.outputs.nightly-hash }}
242+
git push origin --delete ${{ needs.create-nightly-hash.outputs.nightly-hash }}
243+
shell: bash

0 commit comments

Comments
 (0)