From ce26045a5b5b6ea87cb30ae0fa029b42f7887c03 Mon Sep 17 00:00:00 2001 From: Timothy Clarke Date: Mon, 16 Sep 2024 19:08:50 +0100 Subject: [PATCH] testing (#7) --- .github/workflows/tagging.yaml | 3 ++- folder/one/placeholder | 1 + folder/two/placeholder | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tagging.yaml b/.github/workflows/tagging.yaml index 40fc96a..9e175b5 100644 --- a/.github/workflows/tagging.yaml +++ b/.github/workflows/tagging.yaml @@ -58,10 +58,11 @@ jobs: run: | for path in ${FOLDER}; do IFS='/' read -ra parts <<< "$path" - if [ "${#parts[@]}" -ge 3 ]; then + if [ "${#parts[@]}" -ge 2 ]; then first=${parts[0]} second="${parts[1]}" + echo "tag-name=${first}-${second}-v" echo "tag-name=${first}-${second}-v" >> ${GITHUB_OUTPUT} fi done diff --git a/folder/one/placeholder b/folder/one/placeholder index 7a60e23..ce63f2c 100644 --- a/folder/one/placeholder +++ b/folder/one/placeholder @@ -1,3 +1,4 @@ a + diff --git a/folder/two/placeholder b/folder/two/placeholder index 7a60e23..ce63f2c 100644 --- a/folder/two/placeholder +++ b/folder/two/placeholder @@ -1,3 +1,4 @@ a +