Skip to content

Commit

Permalink
cd(bump-version): add permissions (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsmrynk authored Aug 9, 2024
1 parent 49c3fc9 commit 4f74422
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/bump_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- patch
required: true

permissions:
contents: write
pull-requests: write

jobs:
bump_version:
runs-on: ubuntu-latest
Expand All @@ -31,8 +35,8 @@ jobs:
- name: Bump version
run: |
python dev/scripts/bump_version.py --bump-type ${{ github.event.inputs.bump_type }}
echo "BUMPED_VERSION=$(python dev/scripts/get_version.py)" >> $GITHUB_ENV
python -m dev.scripts.bump_version --bump-type ${{ github.event.inputs.bump_type }}
echo "BUMPED_VERSION=$(python -m dev.scripts.get_version)" >> $GITHUB_ENV
- name: Create pull request
uses: peter-evans/create-pull-request@v6
Expand Down
2 changes: 1 addition & 1 deletion dev/scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytz

from dev.scripts.get_version import get_version
from .get_version import get_version


def bump_version(
Expand Down

0 comments on commit 4f74422

Please sign in to comment.