-
Hi, The following statement cause github action to exit:
The following statement passes
Is there any specific reason for that ? Best regards, Jonathan. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @jojoooo1 , When I try the second method, the workflow run also exit. Could you please share your whole workflow yml content here? Is the result of
changed in your side? |
Beta Was this translation helpful? Give feedback.
-
Hi @yanjingzhu I wrote a bit quickly you will find below the variable details:
|
Beta Was this translation helpful? Give feedback.
-
@jojoooo1
just returns 2, this cause the result of if condition to false, so exit 1 will not execute when you use if. But when you connect your commands with && , exit 1 will always be executed.
|
Beta Was this translation helpful? Give feedback.
-
Hi @yanjingzhu, My response from days ago seems to not have been registered :(. Anyway basically my IF condition should have works since it was measuring the length of the TAG_LIST variable. I was able to solve it using this which make sens from an array stand of point by using the two parentheses:
All the best, Jonathan. |
Beta Was this translation helpful? Give feedback.
Hi @yanjingzhu,
My response from days ago seems to not have been registered :(. Anyway basically my IF condition should have works since it was measuring the length of the TAG_LIST variable.
I was able to solve it using this which make sens from an array stand of point by using the two parentheses:
All the best,
Jonathan.