Skip to content

Commit f268e3f

Browse files
committed
Attempt environment variable
1 parent 777d586 commit f268e3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
- name: Retry command
2626
run: |
2727
command() {
28-
"$SHELL" -c "${{ inputs.run }}"
28+
"$SHELL" -c "$COMMAND"
2929
}
3030
3131
for i in $(seq 1 ${{ inputs.max-retries }}); do
@@ -36,6 +36,8 @@ runs:
3636
echo "::error::Command failed after ${{ inputs.max-retries }} attempts."
3737
exit 1
3838
shell: ${{ inputs.shell }}
39+
env:
40+
COMMAND: ${{ inputs.run }}
3941
- name: Set success output
4042
id: success
4143
run: echo "success=true" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)