From 7c38dc264994cf7a99a90cfd790706a65d18c26a Mon Sep 17 00:00:00 2001 From: Brian Salcedo Date: Wed, 5 Nov 2025 14:23:34 -0500 Subject: [PATCH] feat: optionally disable branch check for testing --- action.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 5fbf01f..4b4e92a 100644 --- a/action.yaml +++ b/action.yaml @@ -29,6 +29,9 @@ inputs: docker-tag: description: Docker image tag required: true + disable-branch-check: + description: Optionally disable branch check + default: "false" runs: using: composite @@ -57,7 +60,11 @@ runs: TARGET_BRANCH=develop else echo "Unknown target branch. We are not coming from main, master, nor develop branch." - exit 1 + if [ "${{ inputs.disable-branch-check }}" != "false" ]; then + exit 1 + else + TARGET_BRANCH=develop + fi fi export TARGET_BRANCH