Skip to content
Prev Previous commit
Next Next commit
chore: check cache always
  • Loading branch information
eps1lon committed Apr 19, 2020
commit c9432440ea43357619a3eee6bbc2452fcba7699a
6 changes: 1 addition & 5 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ jobs:
yarn --immutable --immutable-cache

- name: "Check that the cache files are consistent with their remote sources"
run: |
echo "TARGET_BRANCH={{TARGET_BRANCH}}"
if [[ $(git diff --name-only "$(git merge-base origin/{{TARGET_BRANCH}} HEAD)" HEAD -- .yarn/{cache,virtual} | wc -l) -gt 0 ]]; then
yarn --immutable --immutable-cache --check-cache
fi
run: yarn --immutable --immutable-cache --check-cache
if: |
github.event.pull_request != ''
env:
Expand Down