diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -333,8 +333,11 @@ run: npx semantic-release release-oauth-client-browser: if: >- - (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') + always() + && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && needs.changes.outputs.oauth-client-browser == 'true' + && needs.test-oauth-client-browser.result == 'success' + && (needs.release-oauth-client.result == 'success' || needs.changes.outputs.oauth-client != 'true') needs: [changes, test-oauth-client-browser, release-oauth-client] runs-on: depot-ubuntu-24.04 permissions: @@ -388,8 +391,11 @@ run: npx semantic-release release-oauth-client-node: if: >- - (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') + always() + && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && needs.changes.outputs.oauth-client-node == 'true' + && needs.test-oauth-client-node.result == 'success' + && (needs.release-oauth-client.result == 'success' || needs.changes.outputs.oauth-client != 'true') needs: [changes, test-oauth-client-node, release-oauth-client] runs-on: depot-ubuntu-24.04 permissions: @@ -443,8 +449,11 @@ run: npx semantic-release release-lex-agent: if: >- - (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') + always() + && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && needs.changes.outputs.lex-agent == 'true' + && needs.test-lex-agent.result == 'success' + && (needs.release-oauth-client.result == 'success' || needs.changes.outputs.oauth-client != 'true') needs: [changes, test-lex-agent, release-oauth-client] runs-on: depot-ubuntu-24.04 permissions: