Skip to content

Commit b088624

Browse files
committed
Fixing commit on bump
1 parent 3e7f2a0 commit b088624

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

.github/workflows/publish-python.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: ${{ github.actor != 'github-actions[bot]' }}
1515
runs-on: ubuntu-latest
1616
permissions:
17-
contents: write
17+
contents: read
1818
id-token: write
1919
defaults:
2020
run:
@@ -98,7 +98,6 @@ jobs:
9898
PY
9999
100100
- name: Sync version files
101-
id: sync_version
102101
env:
103102
NEXT_VERSION: ${{ steps.version.outputs.next_version }}
104103
run: |
@@ -134,20 +133,6 @@ jobs:
134133
if updated_init != init_text:
135134
init_path.write_text(updated_init)
136135
PY
137-
if git diff --quiet -- pyproject.toml src/diffio/__init__.py; then
138-
echo "changed=false" >> "$GITHUB_OUTPUT"
139-
else
140-
echo "changed=true" >> "$GITHUB_OUTPUT"
141-
fi
142-
143-
- name: Commit version update
144-
if: ${{ steps.sync_version.outputs.changed == 'true' }}
145-
run: |
146-
git config user.name "github-actions[bot]"
147-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
148-
git add pyproject.toml src/diffio/__init__.py
149-
git commit -m "chore(release): bump Python SDK to ${{ steps.version.outputs.next_version }}"
150-
git push origin "HEAD:${GITHUB_REF_NAME}"
151136
152137
- name: Build
153138
if: ${{ steps.version.outputs.publish == 'true' }}

0 commit comments

Comments
 (0)