Skip to content

Commit 8206c93

Browse files
authored
Add post-release run to push next nightly (#478)
1 parent 6800382 commit 8206c93

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Post-release nightly build & release
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
BUILD-TEST-NIGHTLY:
9+
name: Post-release nightly build & release
10+
uses: ./.github/workflows/trigger-all.yml
11+
with:
12+
wf_category: NIGHTLY
13+
push_to_pypi: true
14+
gitref: main
15+
secrets: inherit

.github/workflows/trigger-all.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ on:
55
# * is a special character in YAML so you have to quote this string
66
- cron: '30 0 * * *' # nightly run
77

8+
workflow_call:
9+
inputs:
10+
wf_category:
11+
description: "workflow category, must be 'NIGHTLY' or 'RELEASE' (default: NIGHTLY)"
12+
type: string
13+
default: NIGHTLY
14+
push_to_pypi:
15+
description: "when set and tests pass, then '.whl' & '.tar.gz' will be pushed to public pypi"
16+
type: boolean
17+
default: false
18+
gitref:
19+
description: "git commit hash or tag name"
20+
type: string
21+
default: 'main'
22+
823
workflow_dispatch:
924
inputs:
1025
wf_category:
@@ -36,5 +51,4 @@ jobs:
3651
{"python":"3.10.12","label":"k8s-util","timeout":"40"},
3752
{"python":"3.9.17","label":"k8s-h100-solo","timeout":"40"},
3853
{"python":"3.12.6","label":"k8s-a100-duo","timeout":"40"}]'
39-
4054
secrets: inherit

0 commit comments

Comments
 (0)