From 61c22368db3ab46b0f267eef11c42ea53985b53f Mon Sep 17 00:00:00 2001 From: Daniel Vu Date: Mon, 2 Oct 2023 00:58:37 -0400 Subject: [PATCH] Fixes environment variable propagation --- .github/workflows/use-sdk.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/use-sdk.yml b/.github/workflows/use-sdk.yml index f36cb1a7526c..4744d2dbe530 100644 --- a/.github/workflows/use-sdk.yml +++ b/.github/workflows/use-sdk.yml @@ -12,7 +12,6 @@ jobs: runs-on: ubuntu-latest env: CDN_SHEETS_FOLDER: ${{ vars.CDN_SHEETS_FOLDER }} - DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} # Set job outputs to values from filter step outputs: sheet: ${{ steps.filter.outputs.sheet }} @@ -56,11 +55,19 @@ jobs: # Handles when sheets have been updated individually - run: bun run contrib/sheet-pixie/index.ts ${{ steps.filter.outputs.sheet_files }} if: steps.filter.outputs.sheet == 'true' + env: + DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} - run: gcloud storage rsync --project=roll20-actual ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} gs://roll20-cdn/${{ env.CDN_SHEETS_FOLDER }} --cache-control='no-cache' --recursive if: steps.filter.outputs.sheet == 'true' + env: + DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} # Handles when a force-update has been requested (meaning all sheets will be re-built and deployed) - run: make all if: steps.filter.outputs.sheet != 'true' && steps.filter.outputs.force-update == 'true' + env: + DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} - run: gcloud storage rsync --project=roll20-actual ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} gs://roll20-cdn/${{ env.CDN_SHEETS_FOLDER }} --delete-unmatched-destination-objects --cache-control='no-cache' --recursive if: steps.filter.outputs.sheet != 'true' && steps.filter.outputs.force-update == 'true' + env: + DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }}