mirror of
https://github.com/dorny/paths-filter.git
synced 2024-11-12 08:38:35 +00:00
0612377665
* 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.
17 lines
566 B
YAML
17 lines
566 B
YAML
name: 'Pull request changed files filter'
|
|
description: 'Enables conditional execution of workflow job steps considering which files are modified by a pull request.'
|
|
author: 'Michal Dorner <dorner.michal@gmail.com>'
|
|
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
|
|
runs:
|
|
using: 'node12'
|
|
main: 'dist/index.js'
|
|
branding:
|
|
color: blue
|
|
icon: filter |