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

GitHub Action

Changed Files Exporter

v3.2.1

Changed Files Exporter

wind

Changed Files Exporter

Exports the files created, modified or deleted by a PR

Installation

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

              

- name: Changed Files Exporter

uses: umani/changed-files@v3.2.1

Learn more about this action in umani/changed-files

Choose a version

Changed Files Action

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".

Workflow Config Example

- name: Changed Files Exporter
  uses: futuratrepadeira/changed-files@v3.1.0
  with:
    repo-token: ${{ github.token }}
    pattern: '^.*\.(md|markdown)$'

Inputs

  • repo-token: GitHub Access Token
  • pattern (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 the pull_request event context.

Outputs

All output values are a single JSON encoded array.

  • files_created: Created files
  • files_updated: Updated files
  • files_deleted: Deleted files