ci(release): build when the skipped ci is a reusable workflow
Release / Plan (reuse the published image?) (push) Successful in 5s
CI / Format and vet (push) Successful in 1m2s
CI / Dependency audit (push) Successful in 29s
CI / Tests (Linux, race detector) (push) Failing after 1m34s
Release / ci (push) Failing after 1m34s
Release / Build hub image (amd64) (push) Skipped
Release / Build probe image (amd64) (push) Skipped
Release / Build hub image (arm64) (push) Skipped
Release / Build probe image (arm64) (push) Skipped
Release / Publish tags (hub) (push) Skipped
Release / Publish tags (probe) (push) Skipped
Release / Gitea release (push) Skipped
Release / Plan (reuse the published image?) (push) Successful in 5s
CI / Format and vet (push) Successful in 1m2s
CI / Dependency audit (push) Successful in 29s
CI / Tests (Linux, race detector) (push) Failing after 1m34s
Release / ci (push) Failing after 1m34s
Release / Build hub image (amd64) (push) Skipped
Release / Build probe image (amd64) (push) Skipped
Release / Build hub image (arm64) (push) Skipped
Release / Build probe image (arm64) (push) Skipped
Release / Publish tags (hub) (push) Skipped
Release / Publish tags (probe) (push) Skipped
Release / Gitea release (push) Skipped
Gitea does not report result == 'skipped' for a skipped 'uses:' job, so the builds were skipped with it and v2.1.0 published nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
00c4ab6d4a
commit
fa31cd2ccb
1 file changed
+3
-1
@@ -87,7 +87,9 @@ jobs:
|
||||
name: Build ${{ matrix.target }} image (${{ matrix.arch }})
|
||||
needs: [plan, ci]
|
||||
# ci is skipped (not failed) when the pull request already tested this commit.
|
||||
if: ${{ !cancelled() && needs.plan.result == 'success' && needs.plan.outputs.reuse != 'true' && (needs.ci.result == 'success' || needs.ci.result == 'skipped') }}
|
||||
# A skipped reusable-workflow job does not report result == 'skipped' on
|
||||
# Gitea, so test for "did not fail and was not cancelled" instead.
|
||||
if: ${{ !cancelled() && needs.plan.result == 'success' && needs.plan.outputs.reuse != 'true' && needs.ci.result != 'failure' && needs.ci.result != 'cancelled' }}
|
||||
runs-on: ${{ matrix.runner }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
Reference in new issue
Block a user