Skip to content

Commit

Permalink
made it so the update-toml creates a pr instead of trying to push dir…
Browse files Browse the repository at this point in the history
…ectly to main
  • Loading branch information
sepehr455 committed Feb 8, 2024
1 parent 4d0c363 commit 07b70e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/update-toml-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ jobs:
git config --global user.name "GitHub Actions"
git add llama-cpp-sys-2/Cargo.toml llama-cpp-2/Cargo.toml
git commit -m "Bump version to $NEXT_VERSION [skip ci]"
# Push the changes back to the repository
git push origin main:$GITHUB_REF
# Create a branch for the changes
git checkout -b version-bump-$NEXT_VERSION
# Push the changes and create a pull request
git push origin version-bump-$NEXT_VERSION
gh pr create --base main --head version-bump-$NEXT_VERSION --title "Bump version to $NEXT_VERSION"

0 comments on commit 07b70e7

Please sign in to comment.