Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
search

GitHub Action

Get Changed Files

2.2.0

Get Changed Files

search

Get Changed Files

Saves lists of changed files as JSON for use by other actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Get Changed Files

uses: lots0logs/[email protected]

Learn more about this action in lots0logs/gh-action-get-changed-files

Choose a version

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/[email protected]
  with:
    token: ${{ secrets.GITHUB_TOKEN }}

Inputs

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