Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pr-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: PR metadata annotation
on:
pull_request:
types: [opened, reopened, synchronize]
push:

jobs:

Expand All @@ -13,7 +14,6 @@ jobs:
- uses: actions/checkout@v3

- name: Annotate PR
uses: fabidick22/detect-changes-action@test-workflow2
uses: "./"
with:
path: "dist/"
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# detect-changes-action

Action to get paths and files changed in a Pull Request event and use these for [GitHub Actions matrix](https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs)
Action to get paths and files changed in a Pull Request event and use these for [GitHub Actions matrix](https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs).

NOTE: This repository uses lot of the code from the [jitterbit/get-changed-files](https://github.com/jitterbit/get-changed-files) repository.

## Available Features
- Get list of directories changed in a PR
Expand All @@ -20,12 +22,12 @@ jobs:
changes:
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.filter.outputs.paths_changed }}
packages: ${{ steps.filter.outputs.paths_list }}
steps:
- uses: actions/checkout@v3
- name: Annotate PR
id: filter
uses: fabidick22/detect-changes-action@v1
uses: fabidick22/detect-changes-action@v2
with:
path: "modules/"

Expand Down Expand Up @@ -57,10 +59,10 @@ jobs:

| parameter | description |
| - | - |
| paths_list | List of changed paths, example: `["dist", "dist/data"]` |
| file_list | List of changed files, example: `["dist/main.tf", "dist/index.js"]` |
| paths_str | List of changed paths separated by `,` example: `"dist,dist/data"` |
| file_str | List of changed files separated by `,` example: `"dist/main.tf,dist/index.js"` |
| `paths_list` | List of changed paths, example: `["dist", "dist/data"]` |
| `file_list` | List of changed files, example: `["dist/main.tf", "dist/index.js"]` |
| `paths_str` | List of changed paths separated by `,` example: `"dist,dist/data"` |
| `file_str` | List of changed files separated by `,` example: `"dist/main.tf,dist/index.js"` |



Expand Down
Loading