I’m writing a Github Action which runs some linting and then should submit a pull request back to the original branch.
One thing I’m wanting to do as part of this, is have a check/condition on the ‘open pull request’ step to check the
git status of the checked out version of the repo.
I know you can do something like this but I’m not sure how I’d get the git status in there.
if: "contains(github.event.head_commit.message, '[build]')"
Alternatively, is there a way I can check if the output of a specific step contains a certain string. As then I could check the lint tool to check for a word like ‘Success’.