How to run GitHub actions on particular commits (#snippet)

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 qui…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

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. :)


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate
APA
Stefan Judis | Sciencx (2023-02-04T23:34:33+00:00) » How to run GitHub actions on particular commits (#snippet). Retrieved from https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/.
MLA
" » How to run GitHub actions on particular commits (#snippet)." Stefan Judis | Sciencx - Saturday November 7, 2020, https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/
HARVARD
Stefan Judis | Sciencx Saturday November 7, 2020 » How to run GitHub actions on particular commits (#snippet)., viewed 2023-02-04T23:34:33+00:00,<https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/>
VANCOUVER
Stefan Judis | Sciencx - » How to run GitHub actions on particular commits (#snippet). [Internet]. [Accessed 2023-02-04T23:34:33+00:00]. Available from: https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/
CHICAGO
" » How to run GitHub actions on particular commits (#snippet)." Stefan Judis | Sciencx - Accessed 2023-02-04T23:34:33+00:00. https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/
IEEE
" » How to run GitHub actions on particular commits (#snippet)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/. [Accessed: 2023-02-04T23:34:33+00:00]
rf:citation
» How to run GitHub actions on particular commits (#snippet) | Stefan Judis | Sciencx | https://www.scien.cx/2020/11/07/how-to-run-github-actions-on-particular-commits-snippet/ | 2023-02-04T23:34:33+00:00
https://github.com/addpipe/simple-recorderjs-demo