Skip to content

Commit 592a7fd

Browse files
KonicaiKas-tle
andauthored
Target GitHub actions using commit instead of release (#756)
* Target GitHub actions using commit instead of release * Add action repo links --------- Co-authored-by: Kas-tle <[email protected]>
1 parent 4fc1976 commit 592a7fd

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,22 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
14+
- name: Checkout repository
15+
# See https://github.com/actions/checkout/commits
16+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
17+
1518
- name: Set up JDK 1.8
16-
uses: actions/setup-java@v1
19+
# See https://github.com/actions/setup-java/commits
20+
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
1721
with:
1822
java-version: 8
1923
distribution: temurin
20-
- uses: s4u/[email protected]
24+
25+
- uses: s4u/maven-settings-action@60912582505985be4cc55d2b890eb32767f8de5f
26+
# See https://github.com/s4u/maven-settings-action/commits
2127
with:
2228
servers: '[{"id": "opencollab-release-repo", "username": "${env.MAVEN_USERNAME}", "password": "${env.MAVEN_PASSWORD}"},{"id": "opencollab-snapshot-repo", "username": "${env.MAVEN_USERNAME}", "password": "${env.MAVEN_PASSWORD}"}]'
29+
2330
- name: Deploy with Maven
2431
run: mvn deploy -B -P deploy
2532
env:

.github/workflows/maven.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- uses: actions/checkout@v2
11+
- name: Checkout repository
12+
# See https://github.com/actions/checkout/commits
13+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
14+
1215
- name: Set up JDK 1.8
13-
uses: actions/setup-java@v1
16+
# See https://github.com/actions/setup-java/commits
17+
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
1418
with:
15-
java-version: 1.8
19+
java-version: 8
20+
distribution: temurin
21+
1622
- name: Build with Maven
1723
run: mvn package -B

0 commit comments

Comments
 (0)