File tree Expand file tree Collapse file tree 2 files changed +37
-84
lines changed Expand file tree Collapse file tree 2 files changed +37
-84
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,13 +10,16 @@ permissions:
1010
1111env :
1212 TAG : ${{ github.ref_name }}
13+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1314
1415jobs :
1516 deployment :
1617 runs-on : ubuntu-latest
1718
1819 steps :
1920 - uses : actions/checkout@v3
21+ with :
22+ repo-token : ${{ secrets.GITHUB_TOKEN }}
2023
2124 - name : 📑 Create tag
2225 run : |
3538
3639 shell : bash
3740
38- - name : 🚀 Create release
41+ - name : ⚙️ Set up Python 3.11
42+ uses : actions/setup-python@v3
43+ with :
44+ python-version : " 3.11"
45+
46+ - name : ⚙️ Install dependencies
47+ run : |
48+ python -m pip install --upgrade pip
49+ pip install tomli-w --no-cache-dir
50+
51+ - name : ✅ Update version
3952 env :
40- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53+ NEW_TAG : ${{ env.NEW_TAG }}
54+ run : |
55+ python ./.github/python-library-rc.py
56+
57+ - name : 📝 Git Config
58+ run : |
59+ git config --global user.email [email protected] 60+ git config --global user.name 🐧
61+ shell : bash
62+
63+ - name : 📝 Git Process
64+ run : |
65+ if [[ `git status --porcelain` ]]; then
66+ git add --all
67+ git commit -a -m "Updated Version"
68+ git push origin HEAD:$TAG --force
69+ else
70+ echo "WARNING: No changes were detected. git commit push action aborted."
71+ fi
72+ shell : bash
73+ continue-on-error : true
74+
75+ - name : 🚀 Create release
4176 run : |
4277 gh release create $NEW_TAG \
4378 --repo="$GITHUB_REPOSITORY" \
You can’t perform that action at this time.
0 commit comments