Skip to content

Commit c81fb89

Browse files
committed
Update nightly build workflow improve cleanup of old nightly builds
1 parent f7e1587 commit c81fb89

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/nightly-build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# 2. https://github.com/JasonEtco/create-an-issue
55
# 3. https://docs.github.com/en/actions/learn-github-actions/variables
66
# 4. https://github.com/actions/github-script
7+
# 5. https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds
78
#
89
name: Nightly Build
910

@@ -40,7 +41,7 @@ jobs:
4041
uses: hustcer/setup-nu@v3
4142
if: github.repository == 'nushell/nightly'
4243
with:
43-
version: 0.98.0
44+
version: 0.99.1
4445

4546
# Synchronize the main branch of nightly repo with the main branch of Nushell official repo
4647
- name: Prepare for Nightly Release
@@ -142,7 +143,7 @@ jobs:
142143
- name: Setup Nushell
143144
uses: hustcer/setup-nu@v3
144145
with:
145-
version: 0.98.0
146+
version: 0.99.1
146147

147148
- name: Release Nu Binary
148149
id: nu
@@ -213,20 +214,17 @@ jobs:
213214
name: Cleanup
214215
# Should only run in nushell/nightly repo
215216
if: github.repository == 'nushell/nightly'
217+
needs: [release, sha256sum]
216218
runs-on: ubuntu-latest
217219
steps:
218-
# Sleep for 30 minutes, waiting for the release to be published
219-
- name: Waiting for Release
220-
run: sleep 1800
221-
222220
- uses: actions/checkout@v4
223221
with:
224222
ref: main
225223

226224
- name: Setup Nushell
227225
uses: hustcer/setup-nu@v3
228226
with:
229-
version: 0.98.0
227+
version: 0.99.1
230228

231229
# Keep the last a few releases
232230
- name: Delete Older Releases

0 commit comments

Comments
 (0)