0

I run multiple if-else clauses on my Github Action. However, it fails with following error log:

Line |
   2 |  if [ windows-latest == 'windows-latest' ]; then
     |    ~
     | Missing '(' after 'if' in if statement.

After I substitute brackets to parethesis, I receive this error log:

Line |
   2 |  if ( windows-latest == 'windows-latest' ); then
     |                                          ~
     | Missing statement block after if ( condition ).

I tried to use run followed by if clauses, without success.

Bruno Peixoto
  • 169
  • 1
  • 8

0 Answers0