Skip to content

Commit b470fd8

Browse files
committed
fixed errors in github action
1 parent 7b7eabc commit b470fd8

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/maven.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,27 @@ name: Java CI with Maven
1010

1111
on:
1212
push:
13-
branches: [ "main" ]
14-
pull_request:
15-
branches: [ "main" ]
13+
tags:
14+
- "v*"
15+
16+
permissions:
17+
contents: write
1618

1719
jobs:
1820
build:
19-
2021
runs-on: ubuntu-latest
2122

2223
steps:
23-
- uses: actions/checkout@v4
24-
- name: Set up JDK 17
25-
uses: actions/setup-java@v4
26-
with:
27-
java-version: '17'
28-
distribution: 'temurin'
29-
cache: maven
30-
- name: Build with Maven
31-
run: mvn -B package --file pom.xml
24+
- uses: actions/checkout@v4
25+
- name: Set up JDK 17
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: "17"
29+
distribution: "temurin"
30+
cache: maven
31+
- name: Build with Maven
32+
run: mvn -B package --file pom.xml
3233

33-
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
34-
- name: Update dependency graph
35-
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
34+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
35+
- name: Update dependency graph
36+
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<version>0.1.0</version>
1010

1111
<properties>
12-
<maven.compiler.source>21</maven.compiler.source>
13-
<maven.compiler.target>21</maven.compiler.target>
12+
<maven.compiler.source>17</maven.compiler.source>
13+
<maven.compiler.target>17</maven.compiler.target>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<junit.jupiter.version>5.10.1</junit.jupiter.version>
1616
</properties>

0 commit comments

Comments
 (0)