feat: optionally disable branch check for testing
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user