ci: Fix workflow events (#1446)
This was found by auditing workflows based on research published here: https://github.com/joeyparrish/workflow-cheat-sheet The research was prompted by a workflow bug in Shaka Streamer
This commit is contained in:
parent
cca6cc096f
commit
0857653338
|
@ -26,7 +26,7 @@ on:
|
||||||
# old one. If a PR is updated and a new test run is started, the old test run
|
# old one. If a PR is updated and a new test run is started, the old test run
|
||||||
# will be cancelled automatically to conserve resources.
|
# will be cancelled automatically to conserve resources.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ inputs.ref || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.number || inputs.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -82,7 +82,7 @@ jobs:
|
||||||
if: needs.release.outputs.release_created && needs.compute.outputs.latest
|
if: needs.release.outputs.release_created && needs.compute.outputs.latest
|
||||||
uses: ./.github/workflows/publish-docs.yaml
|
uses: ./.github/workflows/publish-docs.yaml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: refs/tags/${{ needs.release.outputs.tag_name }}
|
||||||
|
|
||||||
# Publish official docker image
|
# Publish official docker image
|
||||||
docker:
|
docker:
|
||||||
|
@ -105,7 +105,7 @@ jobs:
|
||||||
if: needs.release.outputs.release_created
|
if: needs.release.outputs.release_created
|
||||||
uses: ./.github/workflows/build.yaml
|
uses: ./.github/workflows/build.yaml
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.ref }}
|
ref: refs/tags/${{ needs.release.outputs.tag_name }}
|
||||||
self_hosted: ${{ needs.settings.outputs.self_hosted != '' }}
|
self_hosted: ${{ needs.settings.outputs.self_hosted != '' }}
|
||||||
debug: ${{ needs.settings.outputs.debug != '' }}
|
debug: ${{ needs.settings.outputs.debug != '' }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue