Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 13, 2024
1 parent af3df40 commit 45b4337
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions job-name/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ runs:
shell: bash
run: |
# Fetch job ID
[[ "$RUNNER_DEBUG" -eq 1 ]] && set -x
set -euo pipefail
set -x
jobs="$(gh api -X GET "/repos/{owner}/{repo}/actions/runs/${run_id:?}/attempts/${run_attempt:?}/jobs")"
job_ids="$(jq -c --arg name "$job_name" '[.jobs | select(.name == $name) | .id]')"
echo "job-ids=${job_ids:?}" | tee -a "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 45b4337

Please sign in to comment.