Skip to content

Commit d4bb265

Browse files
committed
Adding vars to use
1 parent a0ec681 commit d4bb265

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

setup-rerun-vars/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ runs:
2424
# Assign inputs to variables
2525
run_id="${{ inputs.run_id }}"
2626
repository="${{ inputs.repository }}"
27+
github_token="${{ inputs.github_token }}"
28+
run_attempt="${{ inputs.run_attempt }}"
2729
28-
if [ "${{ inputs.run_attempt }}" -gt 1 ]; then
29-
echo "This run is a re-run (attempt #${{ inputs.run_attempt }})."
30-
curl -H "Authorization: token ${{ inputs.github_token }}" \
30+
if [ "$run_attempt" -gt 1 ]; then
31+
echo "This run is a re-run (attempt #${run_attempt})."
32+
curl -H "Authorization: token $github_token" \
3133
-H "Accept: application/vnd.github.v3+json" \
3234
"https://api.github.com/repos/$repository/actions/runs/$run_id" > run_details.json
3335
triggering_actor=$(jq -r '.triggering_actor.login' run_details.json)

0 commit comments

Comments
 (0)