- fix tea install
Some checks failed
Ollama Review / review-code-with-llm (pull_request) Successful in 56s
continuous-integration/drone/push Build is failing

This commit is contained in:
oonyeje 2025-03-07 16:16:54 -05:00
parent 259119ee02
commit a30d873527

View File

@ -17,9 +17,17 @@ jobs:
- name: Setup Gitea CLI - name: Setup Gitea CLI
run: | run: |
curl -o tea https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 LATEST_VERSION=$(curl -s https://dl.gitea.com/tea/ | \
chmod +x tea grep -oP '(?<=href="/tea/)[^/"]*' | \
./tea --version grep -E '^[0-9]+(\.[0-9]+){1,2}$' | \
sort -V | \
tail -n 1)
curl -L https://dl.gitea.com/tea/${LATEST_VERSION}/tea-${LATEST_VERSION}-linux-amd64 -o /usr/local/bin/tea
chmod +x /usr/local/bin/tea
tea --version
tea --version
tea login add --name gitea --url ${{ gitea.server_url }} --token ${{ secrets.token }} tea login add --name gitea --url ${{ gitea.server_url }} --token ${{ secrets.token }}
tea login default gitea tea login default gitea
@ -35,5 +43,5 @@ jobs:
echo "$comment" >> ollama_review.txt echo "$comment" >> ollama_review.txt
done done
./tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)" tea pr comment ${{ gitea.event.pull_request.number }} --body "$(cat ollama_review.txt)"
shell: bash shell: bash