https://github.com/lots0logs/gh-action-get-changed-files
GitHub Action that saves changed files as JSON for use by other actions.
https://github.com/lots0logs/gh-action-get-changed-files
actions github-actions github-actions-ci
Last synced: about 1 year ago
JSON representation
GitHub Action that saves changed files as JSON for use by other actions.
- Host: GitHub
- URL: https://github.com/lots0logs/gh-action-get-changed-files
- Owner: lots0logs
- License: mit
- Created: 2019-02-17T06:04:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-11-20T09:48:25.000Z (over 1 year ago)
- Last Synced: 2025-04-05T00:41:36.586Z (about 1 year ago)
- Topics: actions, github-actions, github-actions-ci
- Language: JavaScript
- Homepage:
- Size: 298 KB
- Stars: 89
- Watchers: 2
- Forks: 38
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action: Get Changed Files
Saves lists of changed files in the `outputs` object and on the filesystem for use by other actions.
### Workflow Config Example
```
- uses: lots0logs/gh-action-get-changed-files@2.2.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
```
### Inputs
* **`token`**: [The `GITHUB_TOKEN` secret](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token).
### Outputs
All output values are a single JSON encoded array.
* **`all`**: Added, deleted, renamed and modified files
* **`added`**: Added files
* **`deleted`**: Deleted files
* **`renamed`**: Renamed files
* **`modified`**: Modified files
### JSON Files Created By This Action
* `${HOME}/files.json`
* `${HOME}/files_modified.json`
* `${HOME}/files_added.json`
* `${HOME}/files_deleted.json`
* `${HOME}/files_renamed.json`