How to fail a job in Github Actions?
问题 I'm developing a Github actions workflow. This workflow runs on Linux, Mac and Windows. As part of the workflow, I have to check whether 2 environment variables are equal. If they doesn't - fail the job. As described here, Github Actions support if: condition: steps: - run: # How can if make a cross platform failure here? if: ${{ envA }} != ${{ envB }} How can I make the job fail, if the above condition is true? At the beginning, I thought on a script, but there must be a more elegant way to