Merge pull request #7 from kamilchodola/kamilchodola-patch-1

Update action.yml
This commit is contained in:
Kamil Chodoła
2023-04-27 10:30:31 +02:00
committed by GitHub

View File

@@ -9,10 +9,8 @@ counter=0
# Get the current time in ISO 8601 format
current_time=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
# If REF is empty, use github.ref
if [ -z "$REF" ]; then
REF="${GITHUB_REF}"
else
# Check if REF has the prefix "refs/heads/" and append it if not
if [[ ! "$REF" =~ ^refs/heads/ ]]; then
REF="refs/heads/$REF"
fi