diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-04-21 12:05:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 12:05:24 -0400 |
commit | 94613107d51c0fdf5bbcac6cdc2a58d9f2f6a58b (patch) | |
tree | d382360269d71d2203559bc9dd9549c854585324 | |
parent | db13e455ec67cd94047ba05e4ce62716144c1d9c (diff) |
chore(ci): skip ci cache when doing a release (#14350)
-rw-r--r-- | .github/workflows/ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26bf1ace8..554a3c729 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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' |