Skip to content

Commit 425748f

Browse files
authored
Merge pull request #74 from renderbox/develop
switching up to GH Token for authentication
2 parents a12fc0a + db5776b commit 425748f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ jobs:
3939
- name: new_version
4040
run: echo "new_version=$(grep 'version = ' pyproject.toml | cut -d '=' -f2 | tr -d ' "')" >> $GITHUB_ENV
4141

42-
- name: Push changes
42+
- name: Commit and Push Changes
4343
run: |
44-
git config --global user.name 'github-actions[bot]'
45-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
46-
git push
47-
git push --tags
48-
env:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
git config user.email "github-actions[bot]@users.noreply.github.com"
45+
git config user.name "github-actions[bot]"
46+
git commit -am "Bump version [skip ci]" || echo "No changes to commit"
47+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
48+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git --tags
5049
5150
build:
5251
name: Build distribution 📦

0 commit comments

Comments
 (0)