From 3cec360f276726231edad62b5e37ea13aeced53e Mon Sep 17 00:00:00 2001 From: Ryan Ahearn Date: Fri, 3 Jan 2025 16:50:44 -0500 Subject: [PATCH] Only use deployed assets cache --- .github/workflows/deploy-staging.yml | 7 +++---- .github/workflows/terraform-staging.yml | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 3658d49..b314273 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -21,11 +21,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-languages - - name: Restore asset cache + - name: Asset cache uses: actions/cache@v4 with: - key: staging-assets-deployed-${{ github.sha }} - restore-keys: staging-assets-deployed- + key: staging-assets-deployed path: | public/assets app/assets/builds @@ -77,4 +76,4 @@ jobs: name: app-src-apply path: terraform/dist/src.zip compression-level: 0 - retention-days: 2 + retention-days: 1 diff --git a/.github/workflows/terraform-staging.yml b/.github/workflows/terraform-staging.yml index 03dd3ab..34614d7 100644 --- a/.github/workflows/terraform-staging.yml +++ b/.github/workflows/terraform-staging.yml @@ -31,10 +31,9 @@ jobs: - uses: ./.github/actions/setup-languages - name: Restore asset cache - uses: actions/cache@v4 + uses: actions/cache/restore@v4 with: - key: staging-assets-build-${{ github.event.number }} - restore-keys: staging-assets-deployed- + key: staging-assets-deployed path: | public/assets app/assets/builds @@ -70,4 +69,4 @@ jobs: name: app-src-plan path: terraform/dist/src.zip compression-level: 0 - retention-days: 2 + retention-days: 1