List GitHub Action artifacts via API
developTo find the available artifacts for a specific workflow run, use the gh api command. You will need the RUN_ID, which is the numeric ID found in the URL of the specific GitHub Actions run (e.g., in https://github.com/OWNER/REPO/actions/runs/5122160070, the ID is 5122160070).
Replace OWNER, REPO, and RUN_ID in the command below:
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/OWNER/REPO/actions/runs/RUN_ID/artifacts