Skip to content

Commit c9f604f

Browse files
authored
fix(ci): upgrade actions/cache to v5 and fix container git checkout (tronprotocol#6808)
1 parent 4e80f8f commit c9f604f

4 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/integration-test-multinode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
distribution: 'temurin'
3333

3434
- name: Cache Gradle packages
35-
uses: actions/cache@v4
35+
uses: actions/cache@v5
3636
with:
3737
path: |
3838
~/.gradle/caches

.github/workflows/integration-test-single-node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
distribution: 'temurin'
3333

3434
- name: Cache Gradle packages
35-
uses: actions/cache@v4
35+
uses: actions/cache@v5
3636
with:
3737
path: |
3838
~/.gradle/caches

.github/workflows/pr-build.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
distribution: 'temurin'
4444

4545
- name: Cache Gradle packages
46-
uses: actions/cache@v4
46+
uses: actions/cache@v5
4747
with:
4848
path: |
4949
~/.gradle/caches
@@ -82,7 +82,7 @@ jobs:
8282
run: java -version
8383

8484
- name: Cache Gradle packages
85-
uses: actions/cache@v4
85+
uses: actions/cache@v5
8686
with:
8787
path: |
8888
~/.gradle/caches
@@ -117,20 +117,20 @@ jobs:
117117
LC_ALL: en_US.UTF-8
118118

119119
steps:
120-
- name: Checkout code
121-
uses: actions/checkout@v5
122-
123120
- name: Install dependencies (Rocky 8 + JDK8)
124121
run: |
125122
set -euxo pipefail
126123
dnf -y install java-1.8.0-openjdk-devel git wget unzip which jq bc curl glibc-langpack-en
127124
dnf -y groupinstall "Development Tools"
128125
126+
- name: Checkout code
127+
uses: actions/checkout@v5
128+
129129
- name: Check Java version
130130
run: java -version
131131

132132
- name: Cache Gradle
133-
uses: actions/cache@v4
133+
uses: actions/cache@v5
134134
with:
135135
path: |
136136
/github/home/.gradle/caches
@@ -174,20 +174,20 @@ jobs:
174174
GRADLE_USER_HOME: /github/home/.gradle
175175

176176
steps:
177-
- name: Checkout code
178-
uses: actions/checkout@v5
179-
180177
- name: Install dependencies (Debian + build tools)
181178
run: |
182179
set -euxo pipefail
183180
apt-get update
184181
apt-get install -y git wget unzip build-essential curl jq
185182
183+
- name: Checkout code
184+
uses: actions/checkout@v5
185+
186186
- name: Check Java version
187187
run: java -version
188188

189189
- name: Cache Gradle
190-
uses: actions/cache@v4
190+
uses: actions/cache@v5
191191
with:
192192
path: |
193193
/github/home/.gradle/caches
@@ -238,19 +238,19 @@ jobs:
238238
contents: read
239239

240240
steps:
241-
- name: Checkout code
242-
uses: actions/checkout@v5
243-
with:
244-
ref: ${{ github.event.pull_request.base.sha }}
245-
246241
- name: Install dependencies (Debian + build tools)
247242
run: |
248243
set -euxo pipefail
249244
apt-get update
250245
apt-get install -y git wget unzip build-essential curl jq
251246
247+
- name: Checkout code
248+
uses: actions/checkout@v5
249+
with:
250+
ref: ${{ github.event.pull_request.base.sha }}
251+
252252
- name: Cache Gradle packages
253-
uses: actions/cache@v4
253+
uses: actions/cache@v5
254254
with:
255255
path: |
256256
/github/home/.gradle/caches

.github/workflows/pr-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
distribution: 'temurin'
127127

128128
- name: Cache Gradle packages
129-
uses: actions/cache@v4
129+
uses: actions/cache@v5
130130
with:
131131
path: |
132132
~/.gradle/caches

0 commit comments

Comments
 (0)