-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
294d0d9
commit 553ec11
Showing
1 changed file
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |