Skip to content

Commit 2757428

Browse files
simplify commit version
1 parent e096fa6 commit 2757428

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/pypi.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
uses: pypa/gh-action-pypi-publish@release/v1
3232
- name: Commit new version
3333
run: |
34-
PATH=($(git diff --name-only ${{ github.event.before }} ${{ github.sha }}))
3534
git config --local user.name "$GITHUB_ACTOR"
3635
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
37-
git commit ${PATH} -m 'Bump version' || echo "No changes to commit"
36+
git commit $(git diff --name-only | grep '_version') -m 'Bump version' || echo "No changes to commit"
3837
git push origin || echo "No changes to commit"

0 commit comments

Comments
 (0)