Skip to content

Commit 162224d

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

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424
- name: 📑 Create tag
2525
run: |
2626
git ls-remote --tags origin | grep ${TAG##*/}
27-
echo OUTPUT="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
27+
echo _VERSION="$(git ls-remote --tags origin | grep ${TAG##*/})" >> $GITHUB_ENV
2828
29-
if [[ -n "$OUTPUT" ]]; then
30-
echo NEW_TAG="${TAG##*/}-rc-`expr "${OUTPUT:0-1}" + 1`" >> $GITHUB_ENV
29+
if [[ -n "$_VERSION" ]]; then
30+
echo NEW_TAG="${TAG##*/}-rc-`expr "${_VERSION:0-1}" + 1`" >> $GITHUB_ENV
3131
else
3232
echo NEW_TAG="${TAG##*/}-rc-1" >> $GITHUB_ENV
3333
fi
3434
3535
git tag $NEW_TAG
3636
git push origin --tags
3737
38-
echo output $OUTPUT
38+
echo _VERSION $_VERSION
3939
echo tag $TAG
4040
echo new_tag $NEW_TAG
4141
shell: bash
@@ -45,38 +45,38 @@ jobs:
4545
with:
4646
python-version: "3.11"
4747

48-
- name: ⚙️ Install dependencies
49-
run: |
50-
python -m pip install --upgrade pip
51-
pip install tomli-w --no-cache-dir
48+
# - name: ⚙️ Install dependencies
49+
# run: |
50+
# python -m pip install --upgrade pip
51+
# pip install tomli-w --no-cache-dir
5252

53-
- name: ✅ Update version
54-
env:
55-
NEW_TAG: ${{ env.NEW_TAG }}
56-
run: |
57-
python ./.github/python-library-rc.py
53+
# - name: ✅ Update version
54+
# env:
55+
# NEW_TAG: ${{ env.NEW_TAG }}
56+
# run: |
57+
# python ./.github/python-library-rc.py
5858

59-
- name: 📝 Git Config
60-
run: |
61-
git config --global user.email [email protected]
62-
git config --global user.name 🐧
63-
shell: bash
59+
# - name: 📝 Git Config
60+
# run: |
61+
# git config --global user.email [email protected]
62+
# git config --global user.name 🐧
63+
# shell: bash
6464

65-
- name: 📝 Git Process
66-
run: |
67-
if [[ `git status --porcelain` ]]; then
68-
git add --all
69-
git commit -a -m "Updated Version"
70-
git push origin HEAD:$TAG --force
71-
else
72-
echo "WARNING: No changes were detected. git commit push action aborted."
73-
fi
74-
shell: bash
75-
continue-on-error: true
65+
# - name: 📝 Git Process
66+
# run: |
67+
# if [[ `git status --porcelain` ]]; then
68+
# git add --all
69+
# git commit -a -m "Updated Version"
70+
# git push origin HEAD:$TAG --force
71+
# else
72+
# echo "WARNING: No changes were detected. git commit push action aborted."
73+
# fi
74+
# shell: bash
75+
# continue-on-error: true
7676

77-
- name: 🚀 Create release
78-
run: |
79-
gh release create $NEW_TAG \
80-
--repo="$GITHUB_REPOSITORY" \
81-
--title="$NEW_TAG" \
82-
--generate-notes
77+
# - name: 🚀 Create release
78+
# run: |
79+
# gh release create $NEW_TAG \
80+
# --repo="$GITHUB_REPOSITORY" \
81+
# --title="$NEW_TAG" \
82+
# --generate-notes

0 commit comments

Comments
 (0)