Skip to content

Commit 6af5082

Browse files
committed
7
1 parent 513977b commit 6af5082

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/nightly-builds.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,33 @@ jobs:
5757
with:
5858
version: ${{ needs.vars.outputs.version }}
5959

60-
prepublish:
61-
needs: [vars, datagen, tests]
62-
if: ${{ always() }}
63-
runs-on: ubuntu-latest
64-
steps:
65-
- name: Log
66-
run: echo "Pre-Publish Step"
60+
publish-after-tests:
61+
needs: [vars, tests]
62+
if: ${{ !inputs.skip_tests && needs.tests.result == 'success' }}
63+
uses: ./.github/workflows/_publish.yml
64+
secrets: inherit
65+
with:
66+
version: ${{ needs.vars.outputs.version }}
6767

68-
publish:
69-
if: ${{ needs.datagen.result == 'success' }}
70-
needs: [vars, prepublish]
68+
publish-after-no-tests:
69+
needs: [vars, datagen]
70+
if: ${{ inputs.skip_tests && needs.datagen.result == 'success' }}
7171
uses: ./.github/workflows/_publish.yml
7272
secrets: inherit
7373
with:
7474
version: ${{ needs.vars.outputs.version }}
7575

76+
after-publish:
77+
runs-on: ubuntu-latest
78+
needs: [publish-after-tests, publish-after-no-tests]
79+
if: ${{ always() }}
80+
steps:
81+
- name: no-op
82+
run: echo ""
83+
7684
announce:
7785
name: Discord Announcement
78-
needs: [ publish ]
86+
needs: [ after-publish ]
87+
if: ${{ always() }}
7988
uses: ./.github/workflows/_announce-latest-nightly.yml
8089
secrets: inherit

0 commit comments

Comments
 (0)