mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Generate installer script for each PR/push
This works by using Cachix feature of serving a file from a store path.
This commit is contained in:
parent
4e98f0345c
commit
ae4260f0a7
3 changed files with 89 additions and 35 deletions
10
scripts/prepare-installer-for-github-actions
Executable file
10
scripts/prepare-installer-for-github-actions
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
script=$(nix-build -A outputs.hydraJobs.installerScriptForGHA --no-out-link)
|
||||
installerHash=$(echo $script | cut -b12-43 -)
|
||||
|
||||
installerURL=https://$CACHIX_NAME.cachix.org/serve/$installerHash/install
|
||||
|
||||
echo "::set-output name=installerURL::$installerURL"
|
Loading…
Add table
Add a link
Reference in a new issue