-
Notifications
You must be signed in to change notification settings - Fork 0
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
7d358df
commit 8de493a
Showing
1 changed file
with
7 additions
and
4 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 |
---|---|---|
|
@@ -33,23 +33,26 @@ jobs: | |
sudo apt update | ||
sudo apt install gh | ||
- name: Bump version and create a pull request | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
# Create a new branch | ||
git checkout -b bump-version | ||
NEW_VERSION=$(python -c 'version = open("VERSION").read().strip().split("."); version[-1] = str(int(version[-1]) + 1); print(".".join(version))') | ||
echo $NEW_VERSION > VERSION | ||
git add VERSION | ||
git commit -m "Bump version to $NEW_VERSION" | ||
git push origin bump-version | ||
# Create a pull request using GitHub CLI | ||
gh pr create --base main --head bump-version --title "Bump version to $NEW_VERSION" --body "Automatic version bump to $NEW_VERSION" | ||
create_release: | ||
needs: bump_version | ||
runs-on: ubuntu-latest | ||
|