Skip to content

Commit

Permalink
Extract stage-release.yml sub-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Nov 14, 2023
1 parent 875823c commit b606ed2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
release:
uses: spring-projects/spring-integration-aws/.github/workflows/spring-release.yml@main
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-release.yml@main
with:
releaseVersion: ${{ inputs.releaseVersion }}
repositoryTeam: artembilan,garyrussell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
staging:
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-gradle-release-staging.yml@main
uses: ./.github/workflows/stage-release.yml
with:
releaseVersion: ${{ inputs.releaseVersion }}
secrets: inherit
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/stage-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Stage Release with Gradle to Artifactory

on:
workflow_call:
inputs:
releaseVersion:
description: 'Release version like 3.0.0-M1, 3.1.0-RC1, 3.2.0 etc.'
required: true
type: string

jobs:
staging:
uses: spring-projects/spring-integration-aws/.github/workflows/spring-artifactory-gradle-release-staging.yml@main
with:
releaseVersion: ${{ inputs.releaseVersion }}
secrets: inherit

0 comments on commit b606ed2

Please sign in to comment.