Skip to content

Commit

Permalink
docs: Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabidick22 committed Jun 26, 2022
1 parent e032d4e commit 585d471
Show file tree
Hide file tree
Showing 4 changed files with 677 additions and 3 deletions.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# detect-changes-action
# detect-changes-action

## 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)

## Inputs

| parameter | description | required | default |
| - | - | - | - |
| path | Path | `false` | ./ |
| token | The token to use to access the GitHub API | `false` | ${{ github.token }} |


## Outputs

| parameter | description |
| - | - |
| paths_changed | List of changed paths, example: ``` ["dist", "dist/data"] ```
|
| file_changed | List of changed files, example: ``` ["dist/main.tf", "dist/index.js"] ```
|


## Runs

This action is a `node16` action.

17 changes: 15 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'PR Metadata Action'
description: 'Adds pull request file changes as a comment to a newly opened PR'
name: 'Detect PR changes'
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)'
inputs:
path:
description: 'Path'
Expand All @@ -9,6 +9,19 @@ inputs:
description: 'The token to use to access the GitHub API'
required: false
default: ${{ github.token }}
outputs:
paths_changed:
description: >
List of changed paths, example:
```
["dist", "dist/data"]
```
file_changed:
description: >
List of changed files, example:
```
["dist/main.tf", "dist/index.js"]
```
runs:
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit 585d471

Please sign in to comment.