From fa31cd2ccb5f300d286d87fbd4b4d1dfb0c0dc75 Mon Sep 17 00:00:00 2001 From: Lucas Rayan Date: Sun, 15 Nov 2026 23:22:13 -0300 Subject: [PATCH] ci(release): build when the skipped ci is a reusable workflow 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 --- .gitea/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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