Skip to content

Commit

Permalink
ci(dataverse): add permission to clear and save the cache
Browse files Browse the repository at this point in the history
  • Loading branch information
poikilotherm committed May 28, 2023
1 parent c582de2 commit 937fa9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/maven_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ jobs:
# status: "Experimental"
continue-on-error: ${{ matrix.experimental }}
runs-on: ubuntu-latest
permissions:
actions: write # necessary to clear and save the Maven cache
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk }}
distribution: 'adopt'
- name: Cache Maven packages
- name: Restore Maven packages from cache
id: restore-m2-cache
uses: actions/cache/restore@v3
with:
Expand Down Expand Up @@ -85,7 +87,7 @@ jobs:
gh actions-cache delete ${{ steps.restore-m2-cache.outputs.cache-primary-key }} --confirm
# To cache built Maven submodules, summon the save to cache action
- name: Save Maven packages in Cache
- name: Save Maven packages to cache
uses: actions/cache/save@v3
if: always() # Try to save cache, will not fail if key still exists because clean failed
with:
Expand Down

0 comments on commit 937fa9c

Please sign in to comment.