feature/Appointment-Booking #2
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user