diff --git a/templates/github/workflows/CI.yml b/templates/github/workflows/CI.yml index 42d1212f..a0eb510e 100644 --- a/templates/github/workflows/CI.yml +++ b/templates/github/workflows/CI.yml @@ -17,6 +17,9 @@ jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created + actions: write + contents: read strategy: fail-fast: false matrix: @@ -67,6 +70,7 @@ jobs: name: Documentation runs-on: ubuntu-latest permissions: + actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created contents: write statuses: write steps: @@ -74,6 +78,7 @@ jobs: - uses: julia-actions/setup-julia@v1 with: version: '1' + - uses: julia-actions/cache@v1 - name: Configure doc environment shell: julia --project=docs --color=yes {0} run: |