Skip to content

Commit f32dc21

Browse files
committed
Fix CI
1 parent 91f4651 commit f32dc21

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: Build and Deploy Snapshot
22
on:
33
push:
4+
branches: ['2.*']
45
paths-ignore:
56
- "README.md"
67
- "release-notes/*"
78
pull_request:
89
paths-ignore:
910
- "README.md"
1011
- "release-notes/*"
12+
permissions:
13+
contents: read
14+
1115
jobs:
1216
build:
1317
runs-on: 'ubuntu-latest'
@@ -18,9 +22,9 @@ jobs:
1822
env:
1923
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2024
steps:
21-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2226
- name: Set up JDK
23-
uses: actions/setup-java@v4
27+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
2428
with:
2529
distribution: 'temurin'
2630
java-version: ${{ matrix.java_version }}
@@ -48,8 +52,8 @@ jobs:
4852
run: ./mvnw -B -q -ff -ntp test
4953
- name: Publish code coverage
5054
if: github.event_name != 'pull_request' && matrix.java_version == '8'
51-
uses: codecov/codecov-action@v5
55+
uses: codecov/codecov-actionad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
5256
with:
5357
token: ${{ secrets.CODECOV_TOKEN }}
54-
file: ./target/site/jacoco/jacoco.xml
58+
files: ./target/site/jacoco/jacoco.xml
5559
flags: unittests

0 commit comments

Comments
 (0)