Skip to content

Commit

Permalink
ci: IFS-2771 calculate NEXT_VERSION for 2.x builds
Browse files Browse the repository at this point in the history
  • Loading branch information
frgreiner committed Apr 12, 2024
1 parent 790100b commit 7dd7351
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/maven_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,25 @@ on:
- 'isyfact-standards-doc'

jobs:
Version:
uses: IsyFact/isyfact-standards/.github/workflows/next_version.yml@master

Maven:
needs: [Version]
uses: IsyFact/isyfact-standards/.github/workflows/maven_build_template.yml@master
with:
jdk-version: 8
version: ${{ needs.Version.outputs.next-version }}
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Snapshot:
if: github.event_name == 'push'
needs: [Maven]
needs: [Version, Maven]
uses: IsyFact/isyfact-standards/.github/workflows/maven_deploy_template.yml@master
with:
jdk-version: 8
version: '2.5.1-SNAPSHOT' # required by template, does not affect snapshot's version without ci friendly versions
version: ${{ needs.Version.outputs.next-version }}
maven-opts: '-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/IsyFact/isyfact-standards'
deploy-server-id: github
secrets:
Expand Down

0 comments on commit 7dd7351

Please sign in to comment.