This GitHub action applies to pull requests and populates 3 output variables with the modified files. They are: "files_created", "files_updated", and "files_deleted".
- name: Changed Files Exporter
uses: futuratrepadeira/[email protected]
with:
repo-token: ${{ github.token }}
pattern: '^.*\.(md|markdown)$'
repo-token
: GitHub Access Tokenpattern
(optional): A regular expression to filter the outputs by. Defaults to'.*'
.pr-number
(optional): The pull request number. If not provided, the pull request is inferred from the given context. Useful for actions running outside thepull_request
event context.
All output values are a single JSON encoded array.
files_created
: Created filesfiles_updated
: Updated filesfiles_deleted
: Deleted files