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