File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ name: Java CI with Maven
22
33on :
44 push :
5- branches : [ "main" ]
6-
5+ branches : ["main"]
76 pull_request :
8- branches : [ "main" ]
9-
7+ branches : ["main"]
8+
109 workflow_dispatch :
1110
1211jobs :
@@ -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
You can’t perform that action at this time.
0 commit comments