Read this in other languages: English, 日本語.
GitHub Action を Context などでフィルタリングするためのヘルパー
Table of Contents
- インストール
npm i @technote-space/filter-github-action
import { isTargetEvent } from '@technote-space/filter-github-action';
console.log( isTargetEvent( {
"release": [
"published",
"rerequested",
],
"push": [
context => /^refs\/tags\//.test( context.ref ),
"rerequested",
],
'pull_request': [
'*',
],
'project_card': '*',
} ) );