From 11e71cc767fce4c0477d7c784eef92e08f6b1a70 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 31 May 2023 13:44:05 -0700 Subject: [PATCH 1/2] Add a ?ci=github to GHA requests --- action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 7d3889c..4cab487 100644 --- a/action.yml +++ b/action.yml @@ -258,15 +258,15 @@ runs: export NIX_INSTALLER_URL=${{ inputs.nix-installer-url }} else if [ -n "${{ inputs.nix-installer-pr }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/pr/${{ inputs.nix-installer-pr }} + export NIX_INSTALLER_URL=https://install.determinate.systems/nix/pr/${{ inputs.nix-installer-pr }}?ci=github elif [ -n "${{ inputs.nix-installer-tag }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/tag/${{ inputs.nix-installer-tag }} + export NIX_INSTALLER_URL=https://install.determinate.systems/nix/tag/${{ inputs.nix-installer-tag }}?ci=github elif [ -n "${{ inputs.nix-installer-revision }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/rev/${{ inputs.nix-installer-revision }} + export NIX_INSTALLER_URL=https://install.determinate.systems/nix/rev/${{ inputs.nix-installer-revision }}?ci=github elif [ -n "${{ inputs.nix-installer-branch }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/branch/${{ inputs.nix-installer-branch }} + export NIX_INSTALLER_URL=https://install.determinate.systems/nix/branch/${{ inputs.nix-installer-branch }}?ci=github else - export NIX_INSTALLER_URL=https://install.determinate.systems/nix + export NIX_INSTALLER_URL=https://install.determinate.systems/nix?ci=github fi fi echo "Set NIX_INSTALLER_URL=$NIX_INSTALLER_URL" From 322d409404b2dc722379aa7be5d1775558765102 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Thu, 1 Jun 2023 11:32:35 -0700 Subject: [PATCH 2/2] Add quotes --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 4cab487..849b2a9 100644 --- a/action.yml +++ b/action.yml @@ -255,18 +255,18 @@ runs: echo "Set NIX_INSTALLER_FORCE_ALLOW_HTTP=$NIX_INSTALLER_FORCE_ALLOW_HTTP" else if [ -n "${{ inputs.nix-installer-url }}" ]; then - export NIX_INSTALLER_URL=${{ inputs.nix-installer-url }} + export NIX_INSTALLER_URL="${{ inputs.nix-installer-url }}" else if [ -n "${{ inputs.nix-installer-pr }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/pr/${{ inputs.nix-installer-pr }}?ci=github + export NIX_INSTALLER_URL="https://install.determinate.systems/nix/pr/${{ inputs.nix-installer-pr }}?ci=github" elif [ -n "${{ inputs.nix-installer-tag }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/tag/${{ inputs.nix-installer-tag }}?ci=github + export NIX_INSTALLER_URL="https://install.determinate.systems/nix/tag/${{ inputs.nix-installer-tag }}?ci=github" elif [ -n "${{ inputs.nix-installer-revision }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/rev/${{ inputs.nix-installer-revision }}?ci=github + export NIX_INSTALLER_URL="https://install.determinate.systems/nix/rev/${{ inputs.nix-installer-revision }}?ci=github" elif [ -n "${{ inputs.nix-installer-branch }}" ]; then - export NIX_INSTALLER_URL=https://install.determinate.systems/nix/branch/${{ inputs.nix-installer-branch }}?ci=github + export NIX_INSTALLER_URL="https://install.determinate.systems/nix/branch/${{ inputs.nix-installer-branch }}?ci=github" else - export NIX_INSTALLER_URL=https://install.determinate.systems/nix?ci=github + export NIX_INSTALLER_URL="https://install.determinate.systems/nix?ci=github" fi fi echo "Set NIX_INSTALLER_URL=$NIX_INSTALLER_URL"