From 7bf5a08805cb911ea33beaa655fa26e14160dc9b Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Thu, 16 Nov 2023 10:00:21 -0500 Subject: [PATCH] Fix promote jobs conditions --- .github/workflows/spring-artifactory-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/spring-artifactory-release.yml b/.github/workflows/spring-artifactory-release.yml index f7cc106..a4bd9b2 100644 --- a/.github/workflows/spring-artifactory-release.yml +++ b/.github/workflows/spring-artifactory-release.yml @@ -57,8 +57,8 @@ jobs: secrets: inherit promote-milestone: - needs: [staging, verify-staged] - if: ${{ (contains(inputs.releaseVersion, '-M') || contains(inputs.releaseVersion, '-RC')) }} + needs: [releaseVersion, staging, verify-staged] + if: ${{ (contains(needs.releaseVersion.outputs.releaseVersion, '-M') || contains(needs.releaseVersion.outputs.releaseVersion, '-RC')) }} uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-promote-milestone.yml@main with: buildName: ${{ needs.staging.outputs.buildName }} @@ -66,8 +66,8 @@ jobs: secrets: inherit promote-ga: - needs: [staging, verify-staged] - if: ${{ !contains(inputs.releaseVersion, '-') }} + needs: [releaseVersion, staging, verify-staged] + if: ${{ !contains(needs.releaseVersion.outputs.releaseVersion, '-') }} uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-promote-central.yml@main with: buildName: ${{ needs.staging.outputs.buildName }}