Closed humitos closed 1 year ago
This can be done with a GHA option in a simpler way instead:
on:
pull_request_target:
types:
- opened
paths:
- "docs/**" # <-- this line
We are using this on Read the Docs at https://github.com/readthedocs/readthedocs.org/blob/main/.github/workflows/pr-preview-links.yaml#L6-L7 and it's working fine.
It would be good to detect changes under certain directories (e.g.
docs/
) and only update the description in that situation. Example of a potential input for the action:Note we could use
github.rest.pulls.listFiles
to get the files changed in the PR: