Skip to content

Commit

Permalink
Fix workflow syntax for release script
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Nov 14, 2023
1 parent 73abda7 commit 0c72b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Perform Release
name: Release

on:
workflow_dispatch:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/spring-artifactory-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Perform Release
name: Perform Release with Artifactory

on:
workflow_call:
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 0c72b9d

Please sign in to comment.