Create cli-review.yaml
This commit is contained in:
parent
a78427c4f1
commit
1dbba32d08
1 changed files with 29 additions and 0 deletions
29
.github/workflows/cli-review.yaml
vendored
Normal file
29
.github/workflows/cli-review.yaml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: CLI Review
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
cli-review:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Run Continue CLI Review
|
||||
run: |
|
||||
echo "Running Continue CLI with prompt:"
|
||||
echo "=================================="
|
||||
cat review_prompt.txt
|
||||
echo "=================================="
|
||||
echo ""
|
||||
|
||||
# Run the CLI with the generated prompt and output text directly
|
||||
cat review_prompt.txt | cn --config "${{ inputs.assistant }}" -p
|
||||
env:
|
||||
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}
|
||||
Loading…
Add table
Reference in a new issue