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:
Michal Dorner 2020-05-24 21:17:51 +02:00 committed by GitHub
parent 0c9e16cc6d
commit 0612377665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -23,7 +23,6 @@ jobs:
- uses: ./
id: filter
with:
githubToken: ${{ github.token }}
filters: |
src:
- src/**/*

View File

@ -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/**/*'

View File

@ -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