Skip to content

Commit

Permalink
adding @qctions/exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavana Konchada committed Aug 10, 2021
1 parent f9d46ab commit 854d213
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/async-function.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as core from '@actions/core'
import * as exec from '@actions/exec'
import { Context } from '@actions/github/lib/context'
import { GitHub } from '@actions/github/lib/utils'
import {Context} from '@actions/github/lib/context'
import {GitHub} from '@actions/github/lib/utils'
import * as glob from '@actions/glob'
import * as io from '@actions/io'

Expand Down
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as core from '@actions/core'
import * as exec from '@actions/exec'
import { context, getOctokit } from '@actions/github'
import {context, getOctokit} from '@actions/github'
import * as glob from '@actions/glob'
import * as io from '@actions/io'
import { callAsyncFunction } from './async-function'
import { wrapRequire } from './wrap-require'
import {callAsyncFunction} from './async-function'
import {wrapRequire} from './wrap-require'

process.on('unhandledRejection', handleError)
main().catch(handleError)
Expand All @@ -16,7 +16,7 @@ type Options = {
}

async function main(): Promise<void> {
const token = core.getInput('github-token', { required: true })
const token = core.getInput('github-token', {required: true})
const debug = core.getInput('debug')
const userAgent = core.getInput('user-agent')
const previews = core.getInput('previews')
Expand All @@ -27,7 +27,7 @@ async function main(): Promise<void> {
if (previews != null) opts.previews = previews.split(',')

const github = getOctokit(token, opts)
const script = core.getInput('script', { required: true })
const script = core.getInput('script', {required: true})

// Using property/value shorthand on `require` (e.g. `{require}`) causes compilation errors.
const result = await callAsyncFunction(
Expand Down

0 comments on commit 854d213

Please sign in to comment.