Skip to content

Commit dedddd5

Browse files
committed
Update Java CI workflow to use actions/checkout@v5 and clean up formatting
1 parent 5b2473d commit dedddd5

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/java-ci.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ name: Java CI with Maven
22

33
on:
44
push:
5-
branches: [ "main" ]
6-
5+
branches: ["main"]
76
pull_request:
8-
branches: [ "main" ]
9-
7+
branches: ["main"]
8+
109
workflow_dispatch:
1110

1211
jobs:
@@ -17,17 +16,17 @@ jobs:
1716
packages: read
1817

1918
steps:
20-
- uses: actions/checkout@v2
21-
- name: Set up JDK 11
22-
uses: actions/setup-java@v3
23-
with:
24-
java-version: '11'
25-
distribution: 'adopt'
26-
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
27-
settings-path: ${{ github.workspace }} # location for the settings.xml file
19+
- uses: actions/checkout@v5
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: "11"
24+
distribution: "adopt"
25+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
26+
settings-path: ${{ github.workspace }} # location for the settings.xml file
2827

29-
- name: Build with Maven
30-
env:
31-
USER_NAME: ${{ secrets.USER_NAME }}
32-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
33-
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml -B package --file pom.xml
28+
- name: Build with Maven
29+
env:
30+
USER_NAME: ${{ secrets.USER_NAME }}
31+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
32+
run: mvn -s $GITHUB_WORKSPACE/.github/workflows/maven-settings.xml -B package --file pom.xml

0 commit comments

Comments
 (0)