From d4861a683b5338f8fdac7733d91b6bf51cc3fd4b Mon Sep 17 00:00:00 2001 From: Julieanna Bacon Date: Mon, 11 Mar 2024 15:24:09 -0400 Subject: [PATCH] CI: Change both pixi workflows to only write cache on push to main CI: Revert changes on cache writing CI: Final test before squashing --- .github/workflows/deploy_docs.yaml | 5 ----- .github/workflows/tests.yaml | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy_docs.yaml b/.github/workflows/deploy_docs.yaml index b4a04f0..2755e5e 100644 --- a/.github/workflows/deploy_docs.yaml +++ b/.github/workflows/deploy_docs.yaml @@ -29,12 +29,7 @@ jobs: - name: Install Pixi uses: prefix-dev/setup-pixi@v0.5.1 with: -<<<<<<< Updated upstream pixi-version: ${{ env.PIXI_VERSION }} -======= - pixi-version: ${{ env.PIXI_version }} - frozen: true ->>>>>>> Stashed changes cache: true cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b47af34..2017e02 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -30,6 +30,7 @@ jobs: with: pixi-version: ${{ env.PIXI_version }} cache: true + cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} - name: Install repository run: |