Skip to content

Commit

Permalink
use commit hash instead of version tag for third-party actions, only …
Browse files Browse the repository at this point in the history
…build on pull_request
  • Loading branch information
wetret committed Mar 25, 2024
1 parent 8c88cb5 commit f6c48ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Java CI Build with Maven

on: [push]
on: [pull_request]

jobs:
build:
Expand All @@ -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 }}"}]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"}]
Expand Down

0 comments on commit f6c48ae

Please sign in to comment.