8383 echo "::endgroup::"
8484 done
8585 echo "exists=true" >> $GITHUB_OUTPUT
86+
87+ dir=_base
88+ if [ -d "$dir" ]; then
89+ cd $dir
90+ touch _config.txt
91+ zip -r -9 ../_output/Help-.zip .
92+ cd ..
93+ fi
94+
8695 echo "Bundling finished."
8796
8897 - name : Create tag
@@ -100,23 +109,29 @@ jobs:
100109
101110 TAG="$VERSION"
102111
103- echo "::group::Old release delete"
104- RELEASE_ID=$(curl -s -H "Authorization: token $TOKEN" \
105- https://api.github.com/repos/$REPO/releases/tags/$TAG | jq -r .id)
106-
107- if [ "$RELEASE_ID" != "null" ]; then
108- echo "Deleting release ID $RELEASE_ID"
109- curl -s -X DELETE -H "Authorization: token $TOKEN" \
110- https://api.github.com/repos/$REPO/releases/$RELEASE_ID
111- fi
112- echo "::endgroup::"
113-
114- echo "::group::Old tag delete"
115- if git ls-remote --tags origin | grep -q "$TAG"; then
116- git tag -d "$TAG" || true
117- git push origin ":refs/tags/$TAG" || true
118- fi
119- echo "::endgroup::"
112+ #echo "::group::Old release delete"
113+ #RELEASE_ID=$(curl -s -H "Authorization: token $TOKEN" \
114+ # https://api.github.com/repos/$REPO/releases/tags/$TAG)
115+ #MESSAGE=$(echo "$RELEASE_ID" | jq -r '.message // empty')
116+ #if [ "$MESSAGE" = "Not Found" ]; then
117+ # echo "Release with tag $TAG not found"
118+ #else
119+ # RELEASE_ID =$(echo "RELEASE_ID" | jq -r '.id // empty')
120+ #
121+ # if [ "$RELEASE_ID" != "null" ]; then
122+ # echo "Deleting release ID $RELEASE_ID"
123+ # curl -s -X DELETE -H "Authorization: token $TOKEN" \
124+ # https://api.github.com/repos/$REPO/releases/$RELEASE_ID
125+ # fi
126+ #fi
127+ #echo "::endgroup::"
128+ #
129+ #echo "::group::Old tag delete"
130+ #if git ls-remote --tags origin | grep -q "$TAG"; then
131+ # git tag -d "$TAG" || true
132+ # git push origin ":refs/tags/$TAG" || true
133+ #fi
134+ #echo "::endgroup::"
120135
121136 echo "::group::New tag created"
122137 echo "tag=$TAG" >> $GITHUB_OUTPUT
0 commit comments