No Description

Duarte Nunes 4a626ae07b Fix name of main file from "main" to "index" 5 years ago
dist 26827df43f Prepare for release 5 years ago
src 11c61bb9dd Simplify return type of fetchPr 5 years ago
.gitignore 26827df43f Prepare for release 5 years ago
LICENSE 4f717ac50d Initial commit 5 years ago
README.md 995663a83d Add optional `pr-number` input (#8) 5 years ago
action.yml 4a626ae07b Fix name of main file from "main" to "index" 5 years ago
package.json e96b4bf9d4 Add "pack" yarn script 5 years ago
tsconfig.json 4f717ac50d Initial commit 5 years ago
yarn.lock bbafd3b60b Upgrade dependencies 5 years ago

README.md

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