Fix workflow syntax for release script

This commit is contained in:
Artem Bilan
2023-11-14 16:02:57 -05:00
parent 73abda7d8e
commit 0c72b9d543
2 changed files with 4 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
name: Perform Release
name: Release
on:
workflow_dispatch:

View File

@@ -1,4 +1,4 @@
name: Perform Release
name: Perform Release with Artifactory
on:
workflow_call:
@@ -14,9 +14,6 @@ on:
run-name: Release version ${{ inputs.releaseVersion }}
env:
IS_GA: ${{ (contains(inputs.releaseVersion, '-M') || contains(inputs.releaseVersion, '-RC')) && false || true }}
jobs:
staging:
uses: ./.github/workflows/stage-release.yml
@@ -32,7 +29,7 @@ jobs:
secrets: inherit
promote_milestone:
if: ${{ !env.IS_GA }}
if: ${{ contains(inputs.releaseVersion, '-M') || contains(inputs.releaseVersion, '-RC') }}
needs: verify-staged
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-promote-milestone.yml@main
with:
@@ -41,7 +38,7 @@ jobs:
secrets: inherit
promote_ga:
if: ${{ env.IS_GA }}
if: ${{ ! contains(inputs.releaseVersion, '-') }}
needs: verify-staged
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-promote-central.yml@main
with: