Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Use GHA syntax to access ENV var
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Nov 16, 2023
1 parent 80044b8 commit a38747b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/spring-artifactory-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
staging:
needs: releaseVersion
uses: $BUILD_TOOLS_REPO/.github/workflows/spring-stage-release.yml@main
uses: ${{ env.BUILD_TOOLS_REPO }}/.github/workflows/spring-stage-release.yml@main
with:
releaseVersion: ${{ needs.releaseVersion.outputs.releaseVersion }}
buildToolArgs: ${{ inputs.buildToolArgs }}
Expand All @@ -62,7 +62,7 @@ jobs:
promote-milestone:
needs: [releaseVersion, staging, verify-staged]
if: ${{ (contains(needs.releaseVersion.outputs.releaseVersion, '-M') || contains(needs.releaseVersion.outputs.releaseVersion, '-RC')) }}
uses: $BUILD_TOOLS_REPO/.github/workflows/spring-artifactory-promote-milestone.yml@main
uses: ${{ env.BUILD_TOOLS_REPO }}/.github/workflows/spring-artifactory-promote-milestone.yml@main
with:
buildName: ${{ needs.staging.outputs.buildName }}
buildNumber: ${{ needs.staging.outputs.buildNumber }}
Expand All @@ -71,7 +71,7 @@ jobs:
promote-ga:
needs: [releaseVersion, staging, verify-staged]
if: ${{ !contains(needs.releaseVersion.outputs.releaseVersion, '-') }}
uses: $BUILD_TOOLS_REPO/.github/workflows/spring-artifactory-promote-central.yml@main
uses: ${{ env.BUILD_TOOLS_REPO }}/.github/workflows/spring-artifactory-promote-central.yml@main
with:
buildName: ${{ needs.staging.outputs.buildName }}
buildNumber: ${{ needs.staging.outputs.buildNumber }}
Expand All @@ -80,7 +80,7 @@ jobs:
finalize:
if: ${{ !(failure() || cancelled()) }}
needs: [releaseVersion, promote-milestone, promote-ga]
uses: $BUILD_TOOLS_REPO/.github/workflows/spring-finalize-release.yml@main
uses: ${{ env.BUILD_TOOLS_REPO }}/.github/workflows/spring-finalize-release.yml@main
with:
milestone: ${{ needs.releaseVersion.outputs.releaseVersion }}
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/spring-stage-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
staging-with-gradle:
needs: maven-or-gradle
if: ${{ needs.maven-or-gradle.outputs.isMaven == 'false' }}
uses: $BUILD_TOOLS_REPO/.github/workflows/spring-artifactory-gradle-release-staging.yml@main
uses: ${{ env.BUILD_TOOLS_REPO }}/.github/workflows/spring-artifactory-gradle-release-staging.yml@main
with:
releaseVersion: ${{ inputs.releaseVersion }}
gradleTasks: ${{ inputs.buildToolArgs }}
Expand All @@ -57,7 +57,7 @@ jobs:
staging-with-maven:
needs: maven-or-gradle
if: ${{ needs.maven-or-gradle.outputs.isMaven == 'true' }}
uses: $BUILD_TOOLS_REPO/.github/workflows/spring-artifactory-maven-release-staging.yml@main
uses: ${{ env.BUILD_TOOLS_REPO }}/.github/workflows/spring-artifactory-maven-release-staging.yml@main
with:
releaseVersion: ${{ inputs.releaseVersion }}
mavenArgs: ${{ inputs.buildToolArgs }}
Expand Down

0 comments on commit a38747b

Please sign in to comment.