From 24adbdfb8f6d9a802f2566a6c474087586727a8a Mon Sep 17 00:00:00 2001 From: Daniel Vu Date: Mon, 2 Oct 2023 04:50:55 -0400 Subject: [PATCH] Temporarily disables force-update to test on-demand change --- .github/workflows/handle-sheet-push.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/handle-sheet-push.yml b/.github/workflows/handle-sheet-push.yml index 92db2209ac4f..208cbabb7b9b 100644 --- a/.github/workflows/handle-sheet-push.yml +++ b/.github/workflows/handle-sheet-push.yml @@ -54,26 +54,12 @@ 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.force-update != 'true' && steps.filter.outputs.sheet == 'true' + if: steps.filter.outputs.sheet == 'true' env: DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} - run: find ${{ env.DEST_DIR }} -maxdepth 1 -type d -exec sh -c 'cp -R --verbose "$(basename "{}")/translations" "{}/"' 2>/dev/null \; if: steps.filter.outputs.force-update == 'true' - 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.force-update != 'true' && 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.force-update == 'true' - env: - DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }} - - run: find ${{ env.DEST_DIR }} -maxdepth 1 -type d -exec sh -c 'cp -R --verbose "$(basename "{}")/translations" "{}/"' 2>/dev/null \; - if: 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.force-update == 'true' + if: steps.filter.outputs.sheet == 'true' env: DEST_DIR: ${{ runner.temp }}/${{ env.CDN_SHEETS_FOLDER }}