From f6c48ae451c04e8cd8e1dad65bfc8eeb15ddde64 Mon Sep 17 00:00:00 2001 From: Reto Wettstein Date: Mon, 25 Mar 2024 17:57:19 +0100 Subject: [PATCH] use commit hash instead of version tag for third-party actions, only build on pull_request --- .github/workflows/maven-build.yml | 4 ++-- .github/workflows/maven-publish.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }}"}]