From 26c502148d01f76633f18e0c64b53bd97215976e Mon Sep 17 00:00:00 2001 From: Robert Crumbaugh Date: Thu, 8 Feb 2024 14:39:04 -0800 Subject: [PATCH] improve action --- .github/workflows/workflow-executor.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-executor.yaml b/.github/workflows/workflow-executor.yaml index adb176bd..49621ec4 100644 --- a/.github/workflows/workflow-executor.yaml +++ b/.github/workflows/workflow-executor.yaml @@ -183,7 +183,19 @@ jobs: if: | always() && !contains(needs.*.result, 'failure') && - !contains(needs.*.result, 'cancelled') + !contains(needs.*.result, 'cancelled') && ( + needs.run-workflow.outputs.go_regenerated == 'true' || + needs.run-workflow.outputs.python_regenerated == 'true' || + needs.run-workflow.outputs.typescript_regenerated == 'true' || + needs.run-workflow.outputs.terraform_regenerated == 'true' || + needs.run-workflow.outputs.java_regenerated == 'true' || + needs.run-workflow.outputs.php_regenerated == 'true' || + needs.run-workflow.outputs.ruby_regenerated == 'true' || + needs.run-workflow.outputs.csharp_regenerated == 'true' || + needs.run-workflow.outputs.swift_regenerated == 'true' || + needs.run-workflow.outputs.unity_regenerated == 'true' || + needs.run-workflow.outputs.docs_regenerated == 'true' + ) needs: - run-workflow runs-on: ubuntu-latest @@ -332,7 +344,7 @@ jobs: GH_ACTION_STEP: ${{ github.job }} TARGET_TYPE: "sdk" publish-java: - if: ${{ always() && needs.finalize.run-workflow.java_regenerated == 'true' && needs.run-workflow.outputs.publish_java == 'true' && inputs.mode != 'pr' }} + if: ${{ always() && needs.run-workflow.outputs.java_regenerated == 'true' && needs.run-workflow.outputs.publish_java == 'true' && inputs.mode != 'pr' }} name: Publish Java SDK runs-on: ubuntu-latest needs: [ run-workflow, finalize ]