Skip to content

Commit 97e797d

Browse files
committed
feat: Comment with link to the related CI checks in PRs updating llama.cpp
1 parent 68d1e3c commit 97e797d

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/update-llama-cpp.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
7979
git push origin "$BRANCH_NAME"
8080
81-
gh pr create \
81+
PR_URL=$(gh pr create \
8282
--title "Update llama.cpp submodule to ${{ steps.check.outputs.latest_short }}" \
8383
--body "This PR updates the llama.cpp submodule from \`${{ steps.check.outputs.current_short }}\` to \`${{ steps.check.outputs.latest_short }}\`.
8484
@@ -87,7 +87,20 @@ jobs:
8787
---
8888
*This PR was automatically created by the update-llama-cpp workflow.*" \
8989
--base main \
90-
--head "$BRANCH_NAME"
90+
--head "$BRANCH_NAME")
91+
92+
echo "Created PR: $PR_URL"
9193
92-
# Trigger CI workflow on the new branch
9394
gh workflow run "CMake on multiple platforms" --ref "$BRANCH_NAME"
95+
sleep 5
96+
97+
RUN_URL=$(gh run list \
98+
--workflow "CMake on multiple platforms" \
99+
--branch "$BRANCH_NAME" \
100+
--limit 1 \
101+
--json url \
102+
--jq '.[0].url')
103+
104+
if [ -n "$RUN_URL" ]; then
105+
gh pr comment "$PR_URL" --body "🔨 **CI triggered manually:** $RUN_URL
106+
fi

0 commit comments

Comments
 (0)