Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.81 KB

README.ja.md

File metadata and controls

47 lines (38 loc) · 1.81 KB

Filter GitHub Action

npm version Build Status Coverage Status CodeFactor License: MIT

Read this in other languages: English, 日本語.

GitHub Action を Context などでフィルタリングするためのヘルパー

Table of Contents

使用方法

  1. インストール
    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': '*',
} ) );

Author

GitHub (Technote)
Blog