Skip to content

Commit

Permalink
Switch to starts with
Browse files Browse the repository at this point in the history
  • Loading branch information
vmilosevic committed Oct 8, 2024
1 parent 4c50b97 commit 15ad695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Github job context unfortunately doesn't contain job_id, this is the workaround how to fetch it using GH API
JOB_ID=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs" | \
jq -r '.jobs[] | select(.name == "${{ github.job }}") | .id')
jq -r '.jobs[] | select(.name | startswith("${{ github.job }}")) | .id')
echo "job-id=$JOB_ID" >> "$GITHUB_OUTPUT"
- name: Git safe dir
Expand Down

0 comments on commit 15ad695

Please sign in to comment.