Skip to content

Commit

Permalink
chore: assert index.ts is running in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Jul 22, 2022
1 parent eb976ce commit 8eef1a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { assert } from './utils'
import { createConfig } from './config'
import { RyuCho } from './ryu-cho'
import core from '@actions/core'

assert(typeof core !== 'undefined', `core is undefined, which probably means you're not running in a GitHub Action`)

const config = createConfig({
accessToken: core.getInput('access-token', { required: true }),
userName: core.getInput('username', { required: true }),
Expand Down

0 comments on commit 8eef1a5

Please sign in to comment.