From 8ca5194c76504a710496a139147ace8417ca215f Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 1 Feb 2023 10:20:19 -0800 Subject: [PATCH] More conflicts checked --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index 6851f51..9f27aed 100644 --- a/action.yml +++ b/action.yml @@ -211,6 +211,18 @@ runs: echo "The nix-installer-tag and nix-installer-branch options conflict, please choose one" exit 1 fi + if [ -n "${{ inputs.nix-installer-url }}" ] && [ -n "${{ inputs.nix-installer-pr }}" ]; then + echo "The nix-installer-url and nix-installer-pr options conflict, please choose one" + exit 1 + fi + if [ -n "${{ inputs.nix-installer-url }}" ] && [ -n "${{ inputs.nix-installer-tag }}" ]; then + echo "The nix-installer-url and nix-installer-tag options conflict, please choose one" + exit 1 + fi + if [ -n "${{ inputs.nix-installer-url }}" ] && [ -n "${{ inputs.nix-installer-branch }}" ]; then + echo "The nix-installer-url and nix-installer-branch options conflict, please choose one" + exit 1 + fi if [ -n "${{ inputs.local-root }}" ]; then if [ "$RUNNER_OS" == "macOS" ]; then