From e018eb9ebe3752bce76906cbd3d35dc49be4daca Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Tue, 28 Feb 2023 11:39:54 +0000 Subject: [PATCH] Omit cache-hit exit 1, assuming it'll fail regardless --- .github/actions/env-read-file/action.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/actions/env-read-file/action.yml b/.github/actions/env-read-file/action.yml index 6d883329f7..26ca4e0306 100644 --- a/.github/actions/env-read-file/action.yml +++ b/.github/actions/env-read-file/action.yml @@ -9,14 +9,8 @@ runs: with: path: gh.env key: env-cache-${{ hashFiles('gh.env') }} + restore-keys: env-cache- - name: Set Environment Variables - if: steps.env-cache.outputs.cache-hit == 'true' uses: tw3lveparsecs/github-actions-setvars@latest with: - envFilePath: gh.env - - name: Set Environment Variables - if: steps.env-cache.outputs.cache-hit != 'true' - shell: bash - run: | - echo "You need to run env-create-file first" - exit 1 + envFilePath: gh.env \ No newline at end of file