-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
47d170a
commit c09ff69
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |