updated github_list_workflows.sh

pull/2/head
Hari Sekhon 5 years ago
parent 9c001473a5
commit d79f797504

@ -42,4 +42,9 @@ if [ -n "${PASSWORD:-}" ]; then
echo "using authenticated access" >&2
fi
eval "$srcdir/curl_auth.sh" -sS --connect-timeout 3 "${CURL_OPTS:-}" "https://api.github.com/repos/$repo/actions/workflows"
workflow_id="${2:-}"
if [ -n "$workflow_id" ]; then
workflow_id="/$workflow_id"
fi
eval "$srcdir/curl_auth.sh" -sS --connect-timeout 3 "${CURL_OPTS:-}" "https://api.github.com/repos/$repo/actions/workflows$workflow_id"

Loading…
Cancel
Save