Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on_retry_command not respecting shell choice #116

Open
bkonicek-calm opened this issue Sep 19, 2023 · 0 comments · May be fixed by #123
Open

on_retry_command not respecting shell choice #116

bkonicek-calm opened this issue Sep 19, 2023 · 0 comments · May be fixed by #123
Assignees

Comments

@bkonicek-calm
Copy link

Describe the bug
The on_retry_command input, when run, is not using the default or chosen shell from the action inputs. This is causing certain commands to fail

- name: Deploy
  uses: nick-fields/retry@v2.8.3
  with:
    retry_wait_seconds: 1
    max_attempts: 3
    timeout_minutes: 7
    command: |
      exit 1
    on_retry_command: |
      if [[ "foo" == "foo" ]]; then
        echo "result is true"
      fi

Error: /bin/sh: 1: [[: not found

Expected behavior
It should return result is true, and use bash as the shell, not sh

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
Enable debug logging then attach the raw logs (specifically the raw output of this action).

Debug logs: raw-debug-logs.txt

@urecio urecio linked a pull request Oct 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants