Skip to content

Commit dda3d51

Browse files
committed
Adding all input now
1 parent 5653e99 commit dda3d51

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

setup-rerun-vars/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ inputs:
55
run_attempt:
66
description: 'Run attempt number'
77
required: true
8-
github_context:
9-
description: 'GitHub context as a JSON string'
8+
repository:
9+
description: 'GitHub context - Repository'
10+
required: true
11+
run_id:
12+
description: 'GitHub context - Run_ID'
1013
required: true
1114
github_token:
1215
description: 'GitHub Token'
@@ -18,10 +21,8 @@ runs:
1821
- name: Check if this is a re-run
1922
shell: bash
2023
run: |
21-
# Parse the JSON string input
22-
github_context=$(echo "${{ inputs.github_context }}" | jq -r '.')
23-
run_id=$(echo "$github_context" | jq -r '.run_id')
24-
repository=$(echo "$github_context" | jq -r '.repository')
24+
run_id= ${{ inputs.run_id }}
25+
repository=${{ inputs.repository }}
2526
2627
if [ "${{ inputs.run_attempt }}" -gt 1 ]; then
2728
echo "This run is a re-run (attempt #${{ inputs.run_attempt }})."

0 commit comments

Comments
 (0)