Skip to content

harveyr/gh-action-changed-files-in-branch

Repository files navigation

gh-action-changed-files-in-branch

NOT MAINTAINED.

Github Action that outputs files that have changed in this branch.

Requires use of actions/checkout v2+. That versions checks out a branch instead of a detached head.

Using the output

Since the files are output as a single string, you must (I think) use xargs to pass them into a CLI tool.

For example::

- name: ESLint changed files
  run: echo ${{ steps.changed-files-ui.outputs.files }} | xargs -t node node_modules/.bin/eslint
  if: steps.changed-files-ui.outputs.files

About

GitHub Action that outputs which files have changed in your branch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published