Skip to content

Commit fc7415b

Browse files
committed
ci: update deprecated GitHub Actions
1 parent efd6e5c commit fc7415b

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ jobs:
66
name: Build
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
with:
1111
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1212
- name: Set up JDK 11
13-
uses: actions/setup-java@v1
13+
uses: actions/setup-java@v4
1414
with:
15+
distribution: temurin
1516
java-version: 11
1617
- name: Cache SonarCloud packages
17-
uses: actions/cache@v1
18+
uses: actions/cache@v4
1819
with:
1920
path: ~/.sonar/cache
2021
key: ${{ runner.os }}-sonar
2122
restore-keys: ${{ runner.os }}-sonar
2223
- name: Cache Gradle packages
23-
uses: actions/cache@v1
24+
uses: actions/cache@v4
2425
with:
2526
path: ~/.gradle/caches
2627
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
@@ -31,11 +32,11 @@ jobs:
3132
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3233
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3334
run: ./gradlew build sonarqube --info
34-
- uses: actions/upload-artifact@v2
35+
- uses: actions/upload-artifact@v4
3536
with:
3637
path: build/libs/*.jar
3738

38-
- uses: docker/login-action@v1
39+
- uses: docker/login-action@v3
3940
with:
4041
registry: ghcr.io/raeperd
4142
username: ${{ github.actor }}

0 commit comments

Comments
 (0)