-
Notifications
You must be signed in to change notification settings - Fork 88
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
9ed5ded
commit 18475b6
Showing
6 changed files
with
430 additions
and
134 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Cachix Push" | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["CI"] | ||
branches: [master] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
cachix-push: | ||
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 | ||
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 |
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
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
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
Oops, something went wrong.