Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anujdevopslearn authored Oct 8, 2023
1 parent 3bcd947 commit 0b4a2f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ on:
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
buildScript: pom.xml
jobs:
build:

runs-on: ubuntu-latest
env:
mavenGoal: package

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
Expand All @@ -31,4 +28,4 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: "mvn -B $mavenGoal --file $buildScript"
run: "mvn -B ${{ secrets.mavenGoal }} --file ${{ vars.buildScript }}"

0 comments on commit 0b4a2f0

Please sign in to comment.