Skip to content

Commit 6ef460b

Browse files
committed
chore: assert index.ts is running in GitHub Action
1 parent 86c3352 commit 6ef460b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import { assert } from './utils'
12
import { createConfig } from './config'
23
import { RyuCho } from './ryu-cho'
34
import core from '@actions/core'
45

6+
assert(typeof core !== 'undefined', `core is undefined, which probably means you're not running in a GitHub Action`)
7+
58
const config = createConfig({
69
accessToken: core.getInput('access-token', { required: true }),
710
userName: core.getInput('username', { required: true }),

0 commit comments

Comments
 (0)