Skip to content

Commit

Permalink
chore(ci): skip ci cache when doing a release (denoland#14350)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Apr 21, 2022
1 parent db13e45 commit 9461310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ jobs:
# TODO(kt3k): Change the version to the released version
# when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
with:
path: |
./target
Expand All @@ -274,7 +274,7 @@ jobs:
- name: Skip save cache (PR)
run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV
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
if: matrix.profile == 'release'
Expand Down

0 comments on commit 9461310

Please sign in to comment.