GitHub Actions run step only if file with specific ending changed

Viewed 858

So I made a github action which automatically gets the code from github, minify it using a minify-action and then push it to another branch. I now want to only run the minify step if a file ending with css js and html changed, because otherwise the minifier won't even do anything and building the docker image with node and stuff takes a lot of time.

So how can I run a specific step only if files with a specific ending changed? I don't have another job, I can make one, but the step is inbetween two other steps.

0 Answers
Related