Skip to content

Commit 01d7467

Browse files
should force versions to be both lowercase and start with v
1 parent 6db1d62 commit 01d7467

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/target.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ jobs:
3939
run: |
4040
echo "${{ github.event.comment.body }}"
4141
X=`echo "${{ github.event.comment.body }}" | grep -o '!target.*' | awk '{print $2}'`; echo "Target: $X"
42-
echo VERSION="Target : ${X%.}" >> "$GITHUB_OUTPUT"
42+
if [[ ${X,,} = v* ]]
43+
then
44+
Y="${X,,}"
45+
else
46+
Y="v${X,,}"
47+
fi
48+
echo VERSION="Target : ${Y%.}" >> "$GITHUB_OUTPUT"
4349
4450
- name : "Create label if it doesn't exist"
4551
id: create-label

0 commit comments

Comments
 (0)