Skip to content

Commit

Permalink
update-llama-cpp now manually calls the rs-check with the appropriate…
Browse files Browse the repository at this point in the history
… pr_number as input
  • Loading branch information
Luke344 committed Jan 16, 2024
1 parent a01866d commit a868fcb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/llama-cpp-rs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
branches:
- main
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request Number'
required: false
default: ''

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/update-llama-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ jobs:
- name: create pr
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh pr create --fill
gh pr create --fill
echo "::set-output name=pr_number::$(echo "$PR_OUTPUT" | grep -oP 'pull request \K(\d+)')"
- name: Trigger Llama Cpp Rs Check Workflow
run: |
PR_NUMBER=${{ steps.create_pr.outputs.pr_number }}
curl \
-X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/llama-cpp-rs-check.yml/dispatches" \
-d '{"ref":"main", "inputs": {"pr_number":"'$PR_NUMBER'"}}'

0 comments on commit a868fcb

Please sign in to comment.