mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
Merge pull request #13549 from NixOS/mergify/bp/2.30-maintenance/pr-13546
ci: Make it actually possible to disable dogfooding (backport #13546)
This commit is contained in:
commit
c56ecddbee
1 changed files with 4 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ inputs:
|
||||||
install_url:
|
install_url:
|
||||||
description: "URL of the Nix installer"
|
description: "URL of the Nix installer"
|
||||||
required: false
|
required: false
|
||||||
default: "https://releases.nixos.org/nix/nix-2.30.1/install"
|
default: "https://releases.nixos.org/nix/nix-2.29.1/install"
|
||||||
github_token:
|
github_token:
|
||||||
description: "Github token"
|
description: "Github token"
|
||||||
required: true
|
required: true
|
||||||
|
|
@ -19,7 +19,7 @@ runs:
|
||||||
- name: "Download nix install artifact from master"
|
- name: "Download nix install artifact from master"
|
||||||
shell: bash
|
shell: bash
|
||||||
id: download-nix-installer
|
id: download-nix-installer
|
||||||
if: ${{ inputs.dogfood }}
|
if: inputs.dogfood == 'true'
|
||||||
run: |
|
run: |
|
||||||
RUN_ID=$(gh run list --repo "$DOGFOOD_REPO" --workflow ci.yml --branch master --status success --json databaseId --jq ".[0].databaseId")
|
RUN_ID=$(gh run list --repo "$DOGFOOD_REPO" --workflow ci.yml --branch master --status success --json databaseId --jq ".[0].databaseId")
|
||||||
|
|
||||||
|
|
@ -45,6 +45,6 @@ runs:
|
||||||
- uses: cachix/install-nix-action@c134e4c9e34bac6cab09cf239815f9339aaaf84e # v31.5.1
|
- uses: cachix/install-nix-action@c134e4c9e34bac6cab09cf239815f9339aaaf84e # v31.5.1
|
||||||
with:
|
with:
|
||||||
# Ternary operator in GHA: https://www.github.com/actions/runner/issues/409#issuecomment-752775072
|
# Ternary operator in GHA: https://www.github.com/actions/runner/issues/409#issuecomment-752775072
|
||||||
install_url: ${{ inputs.dogfood && format('{0}/install', steps.download-nix-installer.outputs.installer-path) || inputs.install_url }}
|
install_url: ${{ inputs.dogfood == 'true' && format('{0}/install', steps.download-nix-installer.outputs.installer-path) || inputs.install_url }}
|
||||||
install_options: ${{ inputs.dogfood && format('--tarball-url-prefix {0}', steps.download-nix-installer.outputs.installer-path) || '' }}
|
install_options: ${{ inputs.dogfood == 'true' && format('--tarball-url-prefix {0}', steps.download-nix-installer.outputs.installer-path) || '' }}
|
||||||
extra_nix_config: ${{ inputs.extra_nix_config }}
|
extra_nix_config: ${{ inputs.extra_nix_config }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue