Skip to content

Commit 9fca1e4

Browse files
committed
refactor: use peter-evans/create-pull-request for bump workflow
Signed-off-by: Dorin Geman <dorin.geman@docker.com>
1 parent 1fa873f commit 9fca1e4

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/bump-llamacpp.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ jobs:
4040
4141
- name: Create pull request
4242
if: steps.bump.outputs.changed == 'true'
43-
env:
44-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
COMMIT_MSG: ${{ steps.bump.outputs.commit-msg }}
46-
run: |
47-
TAG=$(echo "$COMMIT_MSG" | grep -oP '[^/]+(?=\)$)')
48-
BRANCH="bump-llamacpp-$TAG"
49-
git checkout -b "$BRANCH"
50-
git commit --signoff -m "$COMMIT_MSG"
51-
git push -u origin "$BRANCH"
52-
gh pr create \
53-
--title "chore: bump llama.cpp to $TAG" \
54-
--body "Bumps llama.cpp submodule to [$TAG](https://github.com/ggml-org/llama.cpp/releases/$TAG)."
43+
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676
44+
with:
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
sign-commits: 'true'
47+
commit-message: ${{ steps.bump.outputs.commit-msg }}
48+
title: ${{ steps.bump.outputs.commit-msg }}
49+
body: |
50+
Bumps llama.cpp submodule.
51+
branch: bump-llamacpp
52+
base: main
53+
labels: dependencies
54+
delete-branch: true
55+
add-paths: llamacpp/native/vendor/llama.cpp

0 commit comments

Comments
 (0)