Skip to content

Commit

Permalink
Update bump-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MadScrewdriver authored Jun 2, 2024
1 parent 47d170a commit c09ff69
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/bump-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: write # Grant write permissions
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- name: Checkout code
Expand All @@ -24,21 +26,22 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Franciszek Łajszczak"
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: 3.9 # Specify your desired Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install bump2version


- name: Bump version
run: bumpversion patch --verbose --commit --no-tag

- name: Push changes
env:
GH_PAT: ${{ secrets.GH_PAT }}
- name: Commit changes
run: |
git push "https://x-access-token:${GH_PAT}@github.com/${{ github.repository }}.git" main
git push origin main

0 comments on commit c09ff69

Please sign in to comment.