From 788781d077dfe249166bf7bd4353b4fbace004cf Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 15:32:45 -0500 Subject: [PATCH] - add gitea cli install step --- .gitea/workflows/llm_pipeline_actions.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index b25a95c..35ad431 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -19,11 +19,15 @@ jobs: env: GITEA_TOKEN: ${{ secrets.token }} run: | + curl -o gitea https://dl.gitea.io/gitea-cli/1.5.0/linux-amd64/gitea + chmod +x gitea + ./gitea --version + for file in ${{ steps.changed-files.outputs.all_changed_files }}; do review=$(curl -s https://ollama.bsidesolutions.net/api/generate -d '{"model": "${{ inputs.model }}", "prompt": "Review the following file:\n\n```\n$(cat $file)\n```", "stream": false}' | jq -r '.response') comment="Ollama Code Review for \`$file\`:\n\n$review" echo "$comment" >> ollama_review.txt done - gitea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" + ./gitea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" shell: bash \ No newline at end of file