Fixes - making action pass self-test (#3)

* Remove accidental string interpolation from action.yml

* Fix test workflow filters

* Improve self-test

* Add test case for matching any changed file

* Fix workflow test - step `name` was used instead of `id`

* Extend default pull_request trigger types

* Remove `edited` trigger to avoid executing workflow on non-code changes
This commit is contained in:
Michal Dorner 2020-05-21 01:37:33 +02:00 committed by GitHub
parent 94603ab6f7
commit f9b6173f5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 6 deletions

View file

@ -7,7 +7,7 @@ import Filter from './filter'
async function run(): Promise<void> {
try {
const token = core.getInput('githubToken', {required: true})
const filterYaml = core.getInput('filter', {required: true})
const filterYaml = core.getInput('filters', {required: true})
const client = new github.GitHub(token)
if (github.context.eventName !== 'pull_request') {