diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 88dd2b1..59e3413 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -1,6 +1,6 @@ name: Java CI Build with Maven -on: [push] +on: [pull_request] jobs: build: @@ -15,7 +15,7 @@ jobs: distribution: 'zulu' java-version: 17 cache: 'maven' - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@7802f6aec16c9098b4798ad1f1d8ac75198194bd #3.0.0 with: servers: | [ {"id": "github-mii", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}] diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 741a2b6..639a40c 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -21,7 +21,7 @@ jobs: distribution: 'zulu' java-version: 17 cache: 'maven' - - uses: s4u/maven-settings-action@v2.8.0 + - uses: s4u/maven-settings-action@7802f6aec16c9098b4798ad1f1d8ac75198194bd #3.0.0 with: servers: | [ {"id": "github-mii", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}"}]