From b566a6bcdf61c143c6a9e5c871385d511a198098 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Tue, 26 Jul 2022 06:58:21 +1000 Subject: [PATCH 1/2] do not use turbo cache on main branch --- .github/workflows/continuous-integration.yml | 1 + .github/workflows/cross-platform-test.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index b80556a285..6850f44308 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -32,6 +32,7 @@ jobs: cache: 'yarn' - name: Turbo cache + if: ${{ github.ref != 'refs/heads/main' }} id: turbo-cache uses: actions/cache@v3 with: diff --git a/.github/workflows/cross-platform-test.yml b/.github/workflows/cross-platform-test.yml index c305cf3a19..c67ca5cb8d 100644 --- a/.github/workflows/cross-platform-test.yml +++ b/.github/workflows/cross-platform-test.yml @@ -29,6 +29,7 @@ jobs: cache: yarn - name: Turbo cache + if: ${{ github.ref != 'refs/heads/main' }} id: turbo-cache uses: actions/cache@v3 with: From e7b77c6fecc566d8c19d2da093591b708e50ad13 Mon Sep 17 00:00:00 2001 From: Matt Seddon Date: Tue, 26 Jul 2022 07:56:53 +1000 Subject: [PATCH 2/2] simplify if statement --- .github/workflows/continuous-integration.yml | 2 +- .github/workflows/cross-platform-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 6850f44308..040b057195 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -32,7 +32,7 @@ jobs: cache: 'yarn' - name: Turbo cache - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ github.ref_name != 'main' }} id: turbo-cache uses: actions/cache@v3 with: diff --git a/.github/workflows/cross-platform-test.yml b/.github/workflows/cross-platform-test.yml index c67ca5cb8d..62b243d851 100644 --- a/.github/workflows/cross-platform-test.yml +++ b/.github/workflows/cross-platform-test.yml @@ -29,7 +29,7 @@ jobs: cache: yarn - name: Turbo cache - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ github.ref_name != 'main' }} id: turbo-cache uses: actions/cache@v3 with: