GitHub Action
Changed Filenames
v1
Latest version
This action returns all changed files in a pull request. The changed files includes added, modified, renamed, and removed files.
Key | Description | Optional | Default |
---|---|---|---|
token | GitHub API Token | ✔ | secrets.GITHUB_TOKEN |
output | Output format | ✔ | string |
The following usage will use the default GitHub token and return changed filenames in string format.
- uses: DawChihLiou/changed-files@v1
The following usage will use a custom GitHub toek and return changed filenames in JSON.
- uses: DawChihLiou/changed-files@v1
with:
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
output: 'json'
- uses: DawChihLiou/changed-files@v1
id: changed-files
with:
token: ${{ secrets.YOUR_GITHUB_TOKEN }}
output: 'string'
run: |
echo "${{ steps.changed-files.outputs.filenames }}"