Skip to content

Commit 5de53cd

Browse files
committed
Fix nightly workflow
1 parent e02d644 commit 5de53cd

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/nightly.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
schedule:
66
- cron: "0 23 * * *"
77
jobs:
8-
build-artifacts:
8+
set-env:
99
runs-on: ubuntu-latest
1010
outputs:
1111
version: ${{ env.HQ_VERSION }}
@@ -18,13 +18,14 @@ jobs:
1818
- name: Print HQ nightly version
1919
run: |
2020
echo "HQ version: ${{ env.HQ_VERSION }}"
21-
- name: Build artifacts
22-
uses: ./.github/workflows/build.yml
23-
with:
24-
version: ${{ env.HQ_VERSION }}
21+
build-artifacts:
22+
needs: [set-env]
23+
uses: ./.github/workflows/build.yml
24+
with:
25+
version: ${{ needs.set-env.outputs.version }}
2526
create-tag:
2627
runs-on: ubuntu-latest
27-
needs: [ build-artifacts ]
28+
needs: [set-env, build-artifacts]
2829
steps:
2930
- name: Checkout sources
3031
uses: actions/checkout@v3
@@ -33,10 +34,10 @@ jobs:
3334
with:
3435
tag: nightly
3536
force_push_tag: true
36-
message: Nightly build ${{ needs.build-artifacts.outputs.version }}
37+
message: Nightly build ${{ needs.set-env.outputs.version }}
3738
create-release:
3839
runs-on: ubuntu-latest
39-
needs: [ create-tag ]
40+
needs: [create-tag]
4041
steps:
4142
- name: Checkout sources
4243
uses: actions/checkout@v3

0 commit comments

Comments
 (0)