mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-11 19:07:12 +00:00
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:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -4118,7 +4118,7 @@ function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
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') {
|
||||
core.setFailed('This action can be triggered only by pull_request event');
|
||||
|
||||
Reference in New Issue
Block a user