Bump cryptography from 37.0.1 to 42.0.2 #34
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 | |
on: | |
pull_request: | |
types: [ labeled ] | |
branches: | |
- master | |
jobs: | |
prepare-release: | |
name: Prepare release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Get current version | |
shell: bash | |
run: | | |
CURRENT_VERSION=$(awk '/VERSION =/ { gsub("'"\'"'",""); print $3 }' pusher/version.py) | |
echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV | |
- uses: actions/checkout@v2 | |
with: | |
repository: pusher/public_actions | |
path: .github/actions | |
- uses: ./.github/actions/prepare-version-bump | |
id: bump | |
with: | |
current_version: ${{ env.CURRENT_VERSION }} | |
- name: Push | |
shell: bash | |
run: | | |
perl -pi -e 's/${{env.CURRENT_VERSION}}/${{steps.bump.outputs.new_version}}/' pusher/version.py | |
git add pusher/version.py CHANGELOG.md | |
git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}" | |
git push |