Skip to content

Commit

Permalink
Bust the repository cache on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Dec 11, 2024
1 parent 60689d8 commit 9f5d4b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
- name: Cache Maven/Gradle repositories for tests
uses: actions/cache@v4
with:
path: /tmp/start-spring-io-cache
path: /tmp/start-spring-io-cache-2024-12-11
# See https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
key: test-repositories-${{ runner.os }}-${{ github.run_id }}
restore-keys: test-repositories-${{ runner.os }}-
restore-keys: test-repositories-${{ runner.os }}

- name: Build with Maven
env:
START_SPRING_IO_TMPDIR: /tmp/start-spring-io-cache
START_SPRING_IO_TMPDIR: /tmp/start-spring-io-cache-2024-12-11
run: ./mvnw --batch-mode --update-snapshots verify

- name: Set up Azure
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
- name: Cache Maven/Gradle repositories for tests
uses: actions/cache@v4
with:
path: /tmp/start-spring-io-cache
path: /tmp/start-spring-io-cache-2024-12-11
# See https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
key: test-repositories-ubuntu-latest-${{ github.run_id }}
restore-keys: test-repositories-ubuntu-latest
key: test-repositories-${{ runner.os }}-${{ github.run_id }}
restore-keys: test-repositories-${{ runner.os }}

- name: Build with Maven
env:
START_SPRING_IO_TMPDIR: /tmp/start-spring-io-cache
START_SPRING_IO_TMPDIR: /tmp/start-spring-io-cache-2024-12-11
run: ./mvnw --batch-mode --update-snapshots --activate-profiles verification verify

- name: Send notification
Expand Down

0 comments on commit 9f5d4b5

Please sign in to comment.