Skip to content

Commit

Permalink
trying to get a PR to work
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Aug 9, 2024
1 parent 43f1f1b commit 8c15c68
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,20 @@ jobs:
- name: Update version in __init__.py
run: |
git branch
git checkout -b version_bump
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 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:version_bump
git push origin HEAD:$unique_branch_name
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: version_bump
branch: ${{ steps.update_version.outputs.unique_branch_name }}
title: "Version Bump to ${{ env.next_dev_version }}"
body: "Automatically bumped version to ${{ env.next_dev_version }}."
base: main
Expand Down

0 comments on commit 8c15c68

Please sign in to comment.