mirror of
https://github.com/dorny/paths-filter.git
synced 2024-12-20 00:49:04 +00:00
Do not require user provided githubToken
input (configure default) (#7)
* Do not require user provided `githubToken` input (configure default) * Remove `edited` from workflow example Idea of this example was to show setup where CI runs only when particular files are changed. Triggering workflow when name or description of PR is edited is not needed for this use case.
This commit is contained in:
parent
0c9e16cc6d
commit
0612377665
@ -23,7 +23,6 @@ jobs:
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
githubToken: ${{ github.token }}
|
||||
filters: |
|
||||
src:
|
||||
- src/**/*
|
||||
|
@ -21,7 +21,7 @@ Corresponding output variable will be created to indicate if there's a changed f
|
||||
Output variables can be later used in the `if` clause to conditionally run specific steps.
|
||||
|
||||
### Inputs
|
||||
- **`githubToken`**: GitHub Access Token - use `${{ github.token }}`
|
||||
- **`githubToken`**: GitHub Access Token - defaults to `${{ github.token }}`
|
||||
- **`filters`**: YAML dictionary where keys specifies rule names and values are lists of file path patterns
|
||||
|
||||
### Outputs
|
||||
@ -42,7 +42,6 @@ on:
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
branches:
|
||||
- master
|
||||
@ -54,7 +53,6 @@ jobs:
|
||||
- uses: dorny/pr-changed-files-filter@v1
|
||||
id: filter
|
||||
with:
|
||||
githubToken: ${{ github.token }}
|
||||
filters: |
|
||||
backend:
|
||||
- 'backend/**/*'
|
||||
|
@ -5,6 +5,7 @@ inputs:
|
||||
githubToken:
|
||||
description: 'GitHub Access Token'
|
||||
required: true
|
||||
default: ${{ github.token }}
|
||||
filters:
|
||||
description: 'YAML dictionary where keys specifies rule names and values are lists of (globbing) file path patterns'
|
||||
required: true
|
||||
|
Loading…
Reference in New Issue
Block a user