-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
1 changed file
with
4 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -30,15 +30,18 @@ jobs: | |
echo "next_dev_version=$next_dev_version" >> $GITHUB_ENV | ||
- name: Update version in __init__.py | ||
id: update_version | ||
run: | | ||
unique_branch_name="version_bump_$(date +%s)" | ||
git checkout -b $unique_branch_name | ||
sed -i "s/__version__ = .*/__version__ = \"$next_dev_version\"/" src/acom_music_box/__init__.py | ||
git status | ||
git diff | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Actions" | ||
git add src/acom_music_box/__init__.py | ||
git commit -m "Bump version to ${{ env.next_dev_version }}" | ||
git push origin HEAD:$unique_branch_name | ||
git push --force origin HEAD:$unique_branch_name | ||
echo "branch_name=$unique_branch_name" >> $GITHUB_ENV | ||
- name: Create Pull Request | ||
|