Skip to content

Commit 8e3b362

Browse files
committed
check if latest tag is a ycharts tag
1 parent 1ce7399 commit 8e3b362

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ycharts_patch_tag.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,9 @@ jobs:
3232
run: |
3333
git checkout master
3434
git fetch --tags --force origin
35-
echo "DEBUG describe tags"
36-
git describe --tags --abbrev=0
37-
echo "DEBUG git tag -l"
38-
git tag -l
3935
LATEST_TAG=$(git describe --tags --abbrev=0)
4036
41-
if [ $(git tag -l "$LATEST_TAG-ycharts") ]; then
37+
if [ $(git tag -l "$LATEST_TAG-ycharts") ] || [[ $LATEST_TAG == *"-ycharts" ]]; then
4238
echo "tag_exists=true" >> $GITHUB_OUTPUT
4339
else
4440
echo "tag_exists=false" >> $GITHUB_OUTPUT
@@ -55,7 +51,7 @@ jobs:
5551
- name: Check for new release tag - 1.2.x
5652
id: tag-check-1_2_x
5753
run: |
58-
git reset --hard origin/xmlsec-1_2_x
54+
git checkout xmlsec-1_2_x
5955
git fetch --tags --force origin
6056
LATEST_TAG=$(git describe --tags --abbrev=0)
6157
@@ -64,6 +60,7 @@ jobs:
6460
else
6561
echo "tag_exists=false" >> $GITHUB_OUTPUT
6662
echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
63+
echo $LATEST TAG
6764
fi
6865

6966
- name: Apply ycharts patch and create tag

0 commit comments

Comments
 (0)