How to run GitHub actions on particular commits
Written by Stefan Judis
- Published at
- Updated at
- Reading time
- 1min
Ryan Chandler wrote the quick post Running GitHub Actions for Certain Commit Messages.
I built a few projects with GitHub actions. The technology is great, but unfortunately, the documentation gave me a hard time.
This post is a quick bookmark for my future self. ๐
jobs:
format:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, 'wip')"
This (โ๏ธ) is how you can limit the execution of GitHub actions depending on a commit message. :)
If you enjoyed this article...
Join 5.5k readers and learn something new every week with Web Weekly.
Reply to this post and share your thoughts via good old email.