Create a new patch release #7
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: Create a new patch release | |
on: [workflow_dispatch] | |
jobs: | |
resources: | |
name: Update __init__.py patch version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
- name: Update version | |
run: | | |
pwd | |
$PWD/.github/workflows/scripts/update_version.py --file-path $PWD/massdash/__init__.py | |
- name: Commit version update | |
uses: test-room-7/action-update-file@v1 | |
with: | |
file-path: massdash/__init__.py | |
commit-msg: Bump patch version | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Create new patch release | |
run: $PWD/.github/workflows/scripts/release.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |