1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00

chore(ci): skip ci cache when doing a release (#14350)

This commit is contained in:
David Sherret 2022-04-21 12:05:24 -04:00 committed by crowlkats
parent 3215c26053
commit 5be4a942ae
No known key found for this signature in database
GPG key ID: A82C9D461FC483E8

View file

@ -259,7 +259,7 @@ jobs:
# TODO(kt3k): Change the version to the released version # TODO(kt3k): Change the version to the released version
# when https://github.com/actions/cache/pull/489 (or 571) is merged. # when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
if: github.ref != 'refs/heads/main' if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
with: with:
path: | path: |
./target ./target
@ -274,7 +274,7 @@ jobs:
- name: Skip save cache (PR) - name: Skip save cache (PR)
run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
shell: bash shell: bash
if: github.ref != 'refs/heads/main' if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
- name: Apply and update mtime cache - name: Apply and update mtime cache
if: matrix.profile == 'release' if: matrix.profile == 'release'