Skip to content

Commit

Permalink
Debug jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic committed Oct 28, 2024
1 parent c63bde3 commit e6c6b00
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,22 @@ jobs:
echo "build-output-dir=$(pwd)/build" >> "$GITHUB_OUTPUT"
# debug
curl -s -H "Authorization: token $GH_TOKEN" \
"https://api.github.com/repos/tenstorrent/tt-forge-fe/actions/runs/11514644813/jobs"
curl -s -H "Authorization: token $GH_TOKEN" \
"https://api.github.com/repos/tenstorrent/tt-forge-fe/actions/runs/11514644813/jobs" | jq .
curl -s -H "Authorization: token $GH_TOKEN" \
"https://api.github.com/repos/tenstorrent/tt-forge-fe/actions/runs/11514644813/jobs" | \
jq -r '.jobs[] | .name'
# Github job context unfortunately doesn't contain job_id, this is the workaround how to fetch it using GH API
echo "Expected job name: ${{ env.job-name }}"
JOB_ID=$(curl -s -H "Authorization: token $GH_TOKEN" \
"https://api.github.com/repos/tenstorrent/tt-forge-fe/actions/runs/11514644813/jobs" | \
jq -r '.jobs[] | select(.name | contains("${{ env.job-name }}")) | .id ')
# JOB_ID=$(curl -s -H "Authorization: token $GH_TOKEN" \
# "https://api.github.com/repos/tenstorrent/tt-forge-fe/actions/runs/11514644813/jobs" | \
# jq -r '.jobs[] | select(.name | contains("${{ env.job-name }}")) | .id ')
echo "Current job id: $JOB_ID"
echo "job-id=$JOB_ID" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit e6c6b00

Please sign in to comment.