osscameroon / js-generator

Generates JavaScript from HTML
https://osscameroon.github.io/js-generator/
MIT License
19 stars 14 forks source link

Trigger the Javadoc Workflow only if .github/workflows/javadoc.yml, jsgenerator-core/ or pom.xml has changed #267

Closed FanJups closed 8 months ago

FanJups commented 8 months ago

Now, Javadoc workwlow runs everytime we push on main even if we just updated the README.md file. This is really time and resources consuming.

FanJups commented 8 months ago

https://www.google.com/search?q=github+action+run+workflow+if+some+files+or+folders++changed&sca_esv=374404a38fff13f2&rlz=1C1FCXM_pt-PTPT1032PT1032&sxsrf=ACQVn0-Frev8hcw02t5lLu-_BB-hEzcs0A%3A1709711185917&ei=UR_oZbDRN-DskdUPt9eBqAo&ved=0ahUKEwjwvZ6_kt-EAxVgdqQEHbdrAKUQ4dUDCBA&uact=5&oq=github+action+run+workflow+if+some+files+or+folders++changed&gs_lp=Egxnd3Mtd2l6LXNlcnAiPGdpdGh1YiBhY3Rpb24gcnVuIHdvcmtmbG93IGlmIHNvbWUgZmlsZXMgb3IgZm9sZGVycyAgY2hhbmdlZDIIECEYoAEYwwQyCBAhGKABGMMEMggQIRigARjDBEjMnQFQiQlY7ZcBcAB4ApABAJgBlAigAYAvqgEPOC43LjIuMC4xLjEuMi4xuAEDyAEA-AEBmAIFoAKRCMICBBAAGEfCAgcQIxiwAhgnwgIIEAAYgAQYogSYAwCIBgGQBgiSBwkxLjIuMS4wLjGgB8U3&sclient=gws-wiz-serp

https://stackoverflow.com/questions/63822219/how-to-run-github-actions-workflow-only-if-the-pushed-files-are-in-a-specific-fo

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore

https://github.com/dorny/paths-filter

FanJups commented 8 months ago

Updating the readme doesnt trigger the javadoc workflow so we good :)

image