From 8700347b86363537e185ffae52bdd976c30f7bd1 Mon Sep 17 00:00:00 2001 From: Kait <39479354+katrinafyi@users.noreply.github.com> Date: Mon, 2 Dec 2024 17:54:31 +1000 Subject: [PATCH 1/2] ci: useDaemon to false when not pushing --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 16dbda0..a4d7747 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,11 @@ jobs: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v25 - uses: cachix/cachix-action@v14 - with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}', skipPush: "${{ github.ref != 'refs/heads/main' }}" } + with: + name: pac-nix + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + skipPush: "${{ github.ref != 'refs/heads/main' }}" } + useDaemon: "${{ github.ref == 'refs/heads/main' }}" } - name: Apply staged patch commits if: ${{ inputs.patches-b64 }} From be791d76da929af657e35957afccb3e9113d0f0f Mon Sep 17 00:00:00 2001 From: Kait <39479354+katrinafyi@users.noreply.github.com> Date: Mon, 2 Dec 2024 18:35:28 +1000 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4d7747..bfc5897 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,8 +51,8 @@ jobs: with: name: pac-nix authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - skipPush: "${{ github.ref != 'refs/heads/main' }}" } - useDaemon: "${{ github.ref == 'refs/heads/main' }}" } + skipPush: "${{ github.ref != 'refs/heads/main' }}" + useDaemon: "${{ github.ref == 'refs/heads/main' }}" - name: Apply staged patch commits if: ${{ inputs.patches-b64 }}