From 553ec1115a4f157b9b43f2c2c9fc5bff2ad52b39 Mon Sep 17 00:00:00 2001 From: Daniel Firth Date: Wed, 18 Sep 2024 13:14:57 +0000 Subject: [PATCH] run cachix-push --- .github/workflows/cachix-push.yaml | 31 ++++++++---------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/.github/workflows/cachix-push.yaml b/.github/workflows/cachix-push.yaml index fe8c4266a69..af40a5e90fc 100644 --- a/.github/workflows/cachix-push.yaml +++ b/.github/workflows/cachix-push.yaml @@ -1,38 +1,23 @@ -name: "Cachix Push" +name: Cachix push on: - workflow_run: - workflows: ["CI"] - branches: [master] - types: - - completed + pull_request: jobs: - cachix-push: - name: Cachix Push + cachix: + name: Cachix push runs-on: [self-hosted, nixos] - permissions: - contents: write - # if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - name: 📥 Checkout repository uses: actions/checkout@v4 - with: - repository: cardano-scaling/hydra - ref: release - # Also ensure we have all history with all tags - fetch-depth: 0 - name: ❄ Prepare nix - uses: cachix/install-nix-action@V27 + uses: cachix/install-nix-action@V28 with: extra_nix_config: | accept-flake-config = true log-lines = 1000 - - name: Push Cachix - id: cachix-push - uses: actions/github-script@v7 - with: - script: nix run .#cachix-push + - name: 📐 Cachix push + run: | + nix run .#cachix-push