Skip to content

Commit 615b45b

Browse files
⬆️ CI/CD: Updated
1 parent 162224d commit 615b45b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/python-library-rc.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,19 @@ jobs:
2424
- name: 📑 Create tag
2525
run: |
2626
git ls-remote --tags origin | grep ${TAG##*/}
27-
echo _VERSION="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
27+
echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2828
29-
if [[ -n "$_VERSION" ]]; then
30-
echo NEW_TAG="${TAG##*/}-rc-`expr "${_VERSION:0-1}" + 1`" >> $GITHUB_ENV
29+
echo output $OUTPUT
30+
31+
if [[ -n "$OUTPUT" ]]; then
32+
echo NEW_TAG="${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
3133
else
3234
echo NEW_TAG="${TAG##*/}-rc-1" >> $GITHUB_ENV
3335
fi
3436
3537
git tag $NEW_TAG
3638
git push origin --tags
3739
38-
echo _VERSION $_VERSION
3940
echo tag $TAG
4041
echo new_tag $NEW_TAG
4142
shell: bash

0 commit comments

Comments
 (0)