diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 122976d..ae20804 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -328,7 +328,16 @@ jobs: needs: [build, publish-coverage] runs-on: ubuntu-latest timeout-minutes: 5 - if: (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act + + # run on 'main' and 'release' branch when: + # – build succeeded, AND + # – publish-coverage succeeded OR was skipped + if: > + always() + && needs.build.result == 'success' + && (needs.publish-coverage.result == 'success' || needs.publish-coverage.result == 'skipped') + && (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act + concurrency: publish-${{ github.ref_name }}-release # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idconcurrency steps: