ci-skip icon indicating copy to clipboard operation
ci-skip copied to clipboard

GitHub actions still runs

Open Haroenv opened this issue 4 years ago • 6 comments

Not sure if this was on purpose, but it seems like github actions runs on [ci skip] for you (and also in my testing ⭕️

Haroenv avatar Sep 23 '19 20:09 Haroenv

Thank you for teaching me. fixed ca0c451

srz-zumix avatar Sep 24 '19 00:09 srz-zumix

thanks! Looks like their conditionals are with if, but I don't see an obvious way of reproducing it

see: https://help.github.com/en/articles/workflow-syntax-for-github-actions#jobsjob_idstepsif

Haroenv avatar Sep 24 '19 07:09 Haroenv

I tried workaround. https://github.com/srz-zumix/ci-skip/blob/master/.github/workflows/main.yml#L15

Skip if there is [gh skip] in the head comment. (I want to skip the job, but it still...)

thanks!

srz-zumix avatar Sep 26 '19 01:09 srz-zumix

That looks useful, thanks for investigating!

Haroenv avatar Sep 26 '19 07:09 Haroenv

Good news! "job.if" can be used. GitHub Actions - new workflow syntax features - The GitHub Blog

Updated workaround. https://github.com/srz-zumix/ci-skip/blob/master/docs/github/WORKAROUND.md

srz-zumix avatar Oct 03 '19 05:10 srz-zumix

That’s nice, makes a lot more sense

Haroenv avatar Oct 03 '19 07:10 Haroenv