aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Niang <johnniang@foxmail.com>2024-12-05 16:23:33 +0800
committerGitHub <noreply@github.com>2024-12-05 10:23:33 +0200
commit5394ab0ae9143f32589d0c587143e6aa2fc29a2b (patch)
treee77e544ee242af9ded54549f696be5195848ed57
parentb453209e85a0ca7b572cbe47f7f3161c09e740c5 (diff)
downloadpf4j-5394ab0ae9143f32589d0c587143e6aa2fc29a2b.tar.gz
pf4j-5394ab0ae9143f32589d0c587143e6aa2fc29a2b.zip
Fix the deprecation warnings from GitHub Actions (#599)
-rw-r--r--.github/workflows/build.yml7
1 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 938981c..937a224 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,9 +8,9 @@ on:
jobs:
build:
name: Build
- runs-on: ubuntu-latest
+ runs-on: ubuntu-24.04
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
@@ -20,11 +20,10 @@ jobs:
java-version: 17
cache: maven
- name: Cache SonarCloud packages
- uses: actions/cache@v1
+ uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
- restore-keys: ${{ runner.os }}-sonar
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any