Skip to content

Commit 585d471

Browse files
committed
docs: Update documentation
1 parent e032d4e commit 585d471

File tree

4 files changed

+677
-3
lines changed

4 files changed

+677
-3
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
1-
# detect-changes-action
1+
# detect-changes-action
2+
3+
## Description
4+
5+
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)
6+
7+
## Inputs
8+
9+
| parameter | description | required | default |
10+
| - | - | - | - |
11+
| path | Path | `false` | ./ |
12+
| token | The token to use to access the GitHub API | `false` | ${{ github.token }} |
13+
14+
15+
## Outputs
16+
17+
| parameter | description |
18+
| - | - |
19+
| paths_changed | List of changed paths, example: ``` ["dist", "dist/data"] ```
20+
|
21+
| file_changed | List of changed files, example: ``` ["dist/main.tf", "dist/index.js"] ```
22+
|
23+
24+
25+
## Runs
26+
27+
This action is a `node16` action.
28+

action.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: 'PR Metadata Action'
2-
description: 'Adds pull request file changes as a comment to a newly opened PR'
1+
name: 'Detect PR changes'
2+
description: '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)'
33
inputs:
44
path:
55
description: 'Path'
@@ -9,6 +9,19 @@ inputs:
99
description: 'The token to use to access the GitHub API'
1010
required: false
1111
default: ${{ github.token }}
12+
outputs:
13+
paths_changed:
14+
description: >
15+
List of changed paths, example:
16+
```
17+
["dist", "dist/data"]
18+
```
19+
file_changed:
20+
description: >
21+
List of changed files, example:
22+
```
23+
["dist/main.tf", "dist/index.js"]
24+
```
1225
runs:
1326
using: 'node16'
1427
main: 'dist/index.js'

0 commit comments

Comments
 (0)