From 9eae0c9096c82131ac4110ce6847fa679da4d8bd Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 3 Jul 2024 20:12:00 +0200 Subject: [PATCH] Debug --- .github/workflows/notify-models.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/notify-models.yaml b/.github/workflows/notify-models.yaml index 717ea754e22c..ef204563ddf8 100644 --- a/.github/workflows/notify-models.yaml +++ b/.github/workflows/notify-models.yaml @@ -6,19 +6,19 @@ on: jobs: notify-discord: - if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'area/ai-model')) }} +# if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'area/ai-model')) }} env: MODEL_NAME: hermes-2-theta-llama-3-8b runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # needed to checkout all branches for this Action to work - name: Start LocalAI run: | echo "Starting LocalAI..." - docker run -e -ti -d --name local-ai -p 8080:8080 localai/localai:latest-aio-cpu run --debug $MODEL_NAME - until [ "`docker inspect -f {{.State.Health.Status}} local-ai`"=="healthy" ]; do - echo "Waiting for container to be ready" - sleep 2; - done; + docker run -e -ti -d --name local-ai -p 8080:8080 localai/localai:master-ffmpeg-core run --debug $MODEL_NAME + until [ "`docker inspect -f {{.State.Health.Status}} local-ai`" == "healthy" ]; do echo "Waiting for container to be ready"; docker logs --tail 10 local-ai; sleep 2; done # Check the PR diff using the current branch and the base branch of the PR - uses: GrantBirki/git-diff-action@v2.7.0 id: git-diff-action @@ -64,7 +64,10 @@ jobs: # -H "Authorization: Bearer $API_KEY" \ echo "Summary:" echo "$summary" - echo "message=$summary\n" >> $GITHUB_OUTPUT + echo "payload sent" + echo "$json_payload" + echo "message=$summary" >> $GITHUB_OUTPUT + docker logs --tail 10 local-ai - name: Discord notification env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}