Skip to content

Commit

Permalink
AG-230 - Fix deprecation in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
barreiro committed Jan 5, 2024
1 parent 7a00efe commit 6c1b754
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- run: rm -fr agroal-test/src/test/java/io/agroal/test/springframework && mvn --projects agroal-test verify -Dversion.org.springframework.boot=2.6.1

deploy:
if: ${{ github.repository == 'agroal/agroal' && github.ref == 'refs/heads/master' }}
if: ${{ github.repository == 'barreiro/agroal' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
needs: [ build, test ]
name: Java 17 - Rebuild and Deploy Snapshot Artifacts
Expand All @@ -64,8 +64,8 @@ jobs:
server-username: MAVEN_CI_USERNAME
server-password: MAVEN_CI_PASSWORD
- id: project
run: echo ::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
- if: ${{ endsWith(steps.project.outputs.version, '-SNAPSHOT') }}
run: echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> "$GITHUB_ENV"
- if: endsWith($env.PROJECT_VERSION, '-SNAPSHOT')
run: mvn -B deploy
env:
MAVEN_CI_USERNAME: ${{ secrets.MAVEN_USERNAME }}
Expand Down

0 comments on commit 6c1b754

Please sign in to comment.