File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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' }}
You can’t perform that action at this time.
0 commit comments