Skip to content

Commit

Permalink
sure would like this to work
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Aug 9, 2024
1 parent 05566d3 commit ffa2590
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffa2590

Please sign in to comment.