From 0ce2c654cefb505bc0772cbd424c2d1887e009c1 Mon Sep 17 00:00:00 2001 From: zomars Date: Mon, 27 Feb 2023 16:17:48 -0700 Subject: [PATCH] LFG --- .github/actions/cache-build/action.yml | 3 +++ .github/actions/cache-db/action.yml | 3 +++ .github/workflows/production-build.yml | 6 ------ 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.yml index ecfa1b676e..0945607110 100644 --- a/.github/actions/cache-build/action.yml +++ b/.github/actions/cache-build/action.yml @@ -21,3 +21,6 @@ runs: **/.turbo/** **/dist/** key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }} + - run: yarn build + if: steps.cache-build.outputs.cache-hit != 'true' + shell: bash diff --git a/.github/actions/cache-db/action.yml b/.github/actions/cache-db/action.yml index c6ca9458ac..93fc9ebd2f 100644 --- a/.github/actions/cache-db/action.yml +++ b/.github/actions/cache-db/action.yml @@ -21,6 +21,9 @@ runs: key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ github.sha }} + - run: yarn db-seed + if: steps.cache-db.outputs.cache-hit != 'true' + shell: bash - name: Postgres Dump Backup if: steps.cache-db.outputs.cache-hit != 'true' uses: tj-actions/pg-dump@v2.3 diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 42dacb96c2..83a0818359 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -19,12 +19,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/cache-db - id: cache-db - uses: ./.github/actions/yarn-install - uses: ./.github/actions/cache-build - id: cache-build - uses: ./.github/actions/env-read-file - - run: yarn db-seed - if: steps.cache-db.outputs.cache-hit != 'true' - - run: yarn build - if: steps.cache-build.outputs.cache-hit != 'true'