2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 30 9 * * *' # Pacific Time 01:30 AM in UTC
5
+ - cron : ' 30 9 * * *' # Pacific Time 01:30 AM in UTC
6
6
pull_request :
7
7
types :
8
8
- opened
25
25
required : false
26
26
MERGE_BUMPED_MANIFEST :
27
27
type : boolean
28
- description : " (used if BUMP_MANIFEST=true) If true: attempt to PR/merge manifest branch"
28
+ description : ' (used if BUMP_MANIFEST=true) If true: attempt to PR/merge manifest branch'
29
29
default : false
30
30
required : false
31
31
@@ -34,16 +34,15 @@ concurrency:
34
34
cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
35
35
36
36
permissions :
37
- contents : write # to fetch code and push branch
38
- actions : write # to cancel previous workflows
39
- packages : write # to upload container
40
- pull-requests : write # to make pull request for manifest bump
37
+ contents : write # to fetch code and push branch
38
+ actions : write # to cancel previous workflows
39
+ packages : write # to upload container
40
+ pull-requests : write # to make pull request for manifest bump
41
41
42
42
env :
43
43
DEFAULT_MANIFEST_ARTIFACT_NAME : bumped-manifest
44
44
45
45
jobs :
46
-
47
46
metadata :
48
47
runs-on : ubuntu-22.04
49
48
outputs :
@@ -115,7 +114,7 @@ jobs:
115
114
shell : bash -x -e {0}
116
115
run : |
117
116
bash bump.sh --input-manifest manifest.yaml --output-manifest manifest.yaml.new --base-patch-dir ./patches-new
118
-
117
+
119
118
- name : Maybe replace current manifest/patches with the new one and show diff
120
119
working-directory : .github/container
121
120
shell : bash -x -e {0}
@@ -168,12 +167,11 @@ jobs:
168
167
steps :
169
168
- name : " Tests Succeeded: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}"
170
169
id : test_result
171
- run :
172
- echo "SUCCEEDED=${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}" | tee -a $GITHUB_OUTPUT
170
+ run : echo "SUCCEEDED=${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}" | tee -a $GITHUB_OUTPUT
173
171
174
172
- name : Check out the repository under ${GITHUB_WORKSPACE}
175
173
uses : actions/checkout@v4
176
-
174
+
177
175
- name : Delete checked-out manifest and patches
178
176
run : |
179
177
rm .github/container/manifest.yaml
@@ -185,7 +183,7 @@ jobs:
185
183
name : ${{ needs.metadata.outputs.MANIFEST_ARTIFACT_NAME }}
186
184
path : .github/container/
187
185
188
- - name : " Create local manifest branch: ${{ needs.metadata.outputs.MANIFEST_BRANCH }}"
186
+ - name : ' Create local manifest branch: ${{ needs.metadata.outputs.MANIFEST_BRANCH }}'
189
187
id : local_branch
190
188
shell : bash -x -e {0}
191
189
run : |
@@ -213,7 +211,7 @@ jobs:
213
211
git merge --ff-only ${{ needs.metadata.outputs.MANIFEST_BRANCH }}
214
212
# Push the new change
215
213
git push origin ${{ github.ref_name }}
216
-
214
+
217
215
# We will create a Draft PR & remote branch if:
218
216
# 1. The tests failed
219
217
# 2. The merge failed
@@ -244,12 +242,12 @@ jobs:
244
242
draft : true
245
243
env :
246
244
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
247
-
248
- - name : " Log created PR: #${{ fromJson(steps.create_pr.outputs.data).number }}"
245
+
246
+ - name : ' Log created PR: #${{ fromJson(steps.create_pr.outputs.data).number }}'
249
247
if : steps.create_pr.outcome == 'success'
250
248
run : |
251
249
echo "https://github.com/NVIDIA/JAX-Toolbox/pull/${{ fromJson(steps.create_pr.outputs.data).number }}" | tee -a $GITHUB_STEP_SUMMARY
252
-
250
+
253
251
# Guard delete in simple check to protect other branches
254
252
- name : Check that the branch matches znightly- prefix
255
253
run : |
@@ -271,7 +269,7 @@ jobs:
271
269
272
270
make-publish-configs :
273
271
runs-on : ubuntu-22.04
274
- if : ${{ !cancelled() }}
272
+ if : ${{ !cancelled() }}
275
273
env :
276
274
MEALKIT_IMAGE_REPO : ${{ needs.metadata.outputs.PUBLISH == 'true' && 'jax-mealkit' || 'mock-jax-mealkit' }}
277
275
FINAL_IMAGE_REPO : ${{ needs.metadata.outputs.PUBLISH == 'true' && 'jax' || 'mock-jax' }}
@@ -365,7 +363,7 @@ jobs:
365
363
needs :
366
364
- metadata
367
365
- make-publish-configs
368
- if : ${{ !cancelled() && needs.make-publish-configs.outputs.PUBLISH_CONFIGS.config != '{"config":[]}' }}
366
+ if : ${{ !cancelled() && needs.make-publish-configs.outputs.PUBLISH_CONFIGS.config != '{"config":[]}' }}
369
367
strategy :
370
368
fail-fast : false
371
369
matrix : ${{ fromJson(needs.make-publish-configs.outputs.PUBLISH_CONFIGS) }}
@@ -381,7 +379,7 @@ jobs:
381
379
382
380
finalize :
383
381
needs : [metadata, amd64, arm64, publish-containers]
384
- if : " !cancelled()"
382
+ if : ' !cancelled()'
385
383
uses : ./.github/workflows/_finalize.yaml
386
384
with :
387
385
BUILD_DATE : ${{ needs.metadata.outputs.BUILD_DATE }}
0 commit comments