Skip to content

Commit 29cd6d2

Browse files
committed
Use actions/cache@v4
1 parent 8cd5e70 commit 29cd6d2

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/build-java.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
branches:
66
- main
77
paths:
8-
- "generated/java/**"
9-
- ".github/workflows/build-java.yml"
8+
- "generated/java/**"
9+
- ".github/workflows/build-java.yml"
1010
pull_request:
1111
branches:
1212
- main
1313
paths:
14-
- "generated/java/**"
15-
- ".github/workflows/build-java.yml"
14+
- "generated/java/**"
15+
- ".github/workflows/build-java.yml"
1616

1717
jobs:
1818
build:
@@ -39,14 +39,13 @@ jobs:
3939
token_format: access_token
4040

4141
- name: Cache Maven packages
42-
uses: actions/cache@v3
42+
uses: actions/cache@v4
4343
with:
4444
path: ~/.m2
4545
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
4646
restore-keys: ${{ runner.os }}-m2
4747

4848
- name: Build with Maven and deploy to Artifact Registry
4949
run: |
50-
pushd generated/java/datadoc-model
51-
./mvnw --batch-mode -P ssb deploy
52-
50+
pushd generated/java/datadoc-model
51+
./mvnw --batch-mode -P ssb deploy

.github/workflows/release-java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
token_format: access_token
4242

4343
- name: Cache Maven packages
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
with:
4646
path: ~/.m2
4747
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}

.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
with:
2727
python-version: "3.11"
2828
- uses: Gr1N/setup-poetry@v8
29-
- uses: actions/cache@v2
29+
- uses: actions/cache@v4
3030
with:
3131
path: ~/.cache/pypoetry/virtualenvs
3232
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

0 commit comments

Comments
 (0)