diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 519354c..91a82d9 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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