Skip to content

What am I doing wrong with this conditional step? #3217

Closed Answered by MarouaneBenbetka
tking16 asked this question in Q&A
Discussion options

You must be logged in to vote

Your action's conditional check fails because the environment variable READY is being evaluated as a string, not a boolean. In your debug step, you've observed that echo "$READY" and echo "${{env.READY}}" both output true, indicating that the value is stored as the string "true", not the boolean true.

this should fix it , if so mark is as answered please

- name: Confirm Grid is up
  if: env.READY == 'true'
  run: echo "Selenium Grid is Ready"
- name: Exit if Grid is down
  if: env.READY != 'true'
  run: echo "Selenium Grid wasn't ready, ending action" && exit 1

``

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tking16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants