From 45b4337bdada493bef5c3eaea2cb27b044d77515 Mon Sep 17 00:00:00 2001 From: Curtis Vogt Date: Tue, 13 Aug 2024 14:09:03 -0500 Subject: [PATCH] Debug --- job-name/action.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/job-name/action.yaml b/job-name/action.yaml index 4425d0d..4dcc3cf 100644 --- a/job-name/action.yaml +++ b/job-name/action.yaml @@ -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"