Skip to content

Commit

Permalink
fix: exec permissions for release gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
singjc committed Aug 7, 2024
1 parent e15d3ac commit 9f5b0c3
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,25 @@ jobs:
name: Update __init__.py patch version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- 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
$PWD/.github/workflows/scripts/update_init_version.py --file-path $PWD/pyopenms_viz/__init__.py
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.GITHUB_TOKEN }}
- uses: actions/checkout@v3
file-path: pyopenms_viz/__init__.py
commit-msg: Bump patch version
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create new patch release
run: $PWD/.github/workflows/scripts/release.py
run: python .github/workflows/scripts/release.py
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit 9f5b0c3

Please sign in to comment.