Skip to content

Commit 2ab1bbd

Browse files
⬆️ CI/CD: Updated
1 parent 5155ccd commit 2ab1bbd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ jobs:
2121
with:
2222
repo-token: ${{ secrets.GITHUB_TOKEN }}
2323

24-
# - name: 📑 Create tag
25-
# run: |
26-
# echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
24+
- name: 📑 Create tag
25+
run: |
26+
echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2727
28-
# if [[ -n "$OUTPUT" ]]; then
29-
# echo NEW_TAG="${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
30-
# else
31-
# echo NEW_TAG="${TAG##*/}-rc-1" >> $GITHUB_ENV
32-
# fi
28+
if [[ -n "$OUTPUT" ]]; then
29+
echo NEW_TAG="${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
30+
else
31+
echo NEW_TAG="${TAG##*/}-rc-1" >> $GITHUB_ENV
32+
fi
3333
34-
# git tag $NEW_TAG
35-
# git push origin --tags
36-
# shell: bash
34+
git tag $NEW_TAG
35+
git push origin --tags
36+
shell: bash
3737

3838
- name: ⚙️ Set up Python 3.11
3939
uses: actions/setup-python@v3

0 commit comments

Comments
 (0)