From a30d873527127747086685f885547e08115d20ab Mon Sep 17 00:00:00 2001 From: oonyeje Date: Fri, 7 Mar 2025 16:16:54 -0500 Subject: [PATCH] - fix tea install --- .gitea/workflows/llm_pipeline_actions.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/llm_pipeline_actions.yaml b/.gitea/workflows/llm_pipeline_actions.yaml index 73cabf4..79a02e7 100644 --- a/.gitea/workflows/llm_pipeline_actions.yaml +++ b/.gitea/workflows/llm_pipeline_actions.yaml @@ -17,9 +17,17 @@ jobs: - name: Setup Gitea CLI run: | - curl -o tea https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 - chmod +x tea - ./tea --version + LATEST_VERSION=$(curl -s https://dl.gitea.com/tea/ | \ + grep -oP '(?<=href="/tea/)[^/"]*' | \ + 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 default gitea @@ -35,5 +43,5 @@ jobs: echo "$comment" >> ollama_review.txt 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 \ No newline at end of file