File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,12 @@ runs:
24
24
# Assign inputs to variables
25
25
run_id="${{ inputs.run_id }}"
26
26
repository="${{ inputs.repository }}"
27
+ github_token="${{ inputs.github_token }}"
28
+ run_attempt="${{ inputs.run_attempt }}"
27
29
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" \
31
33
-H "Accept: application/vnd.github.v3+json" \
32
34
"https://api.github.com/repos/$repository/actions/runs/$run_id" > run_details.json
33
35
triggering_actor=$(jq -r '.triggering_actor.login' run_details.json)
You can’t perform that action at this time.
0 commit comments