diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89ad37756323c..895c86c4caa33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -187,10 +187,10 @@ jobs: id: taplo run: taplo fmt --check --diff --option indent_string=" " - name: Taplo info - if: failure() + if: ${{ steps.taplo.outcome }} == 'failure' run: | echo 'To fix toml fmt, please run `taplo fmt --option indent_string=" "`.' - echo `note: indent_string is with 4 spaces.` + echo 'note: indent_string is with 4 spaces.' echo 'Or if you use VSCode, use the Even Better Toml extension and indent using 4 spaces.' # run-examples-on-windows-dx12: