-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (29 loc) · 1.01 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Set script permissions
run: |
chmod +x .github/workflows/scripts/update_init_version.py
chmod +x .github/workflows/scripts/release.py
- name: Update version
run: |
pwd
python .github/workflows/scripts/update_init_version.py --file-path pyopenms_viz/__init__.py
- name: Commit version update
uses: test-room-7/action-update-file@v1
with:
file-path: pyopenms_viz/__init__.py
commit-msg: Bump patch version
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Create new patch release
run: python .github/workflows/scripts/release.py
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}