Skip to content

Commit

Permalink
context empty issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MCKanpolat committed Nov 25, 2020
1 parent 931dbfa commit 055bc5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
9 changes: 5 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import * as core from '@actions/core'
import * as github from '@actions/github'
import {Context} from '@actions/github/lib/context'
import {context} from '@actions/github'
import {getMostRecentVersionFromTags, increment} from './versionBuilder'

// debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true
async function run(context: Context = github.context): Promise<void> {
async function run(): Promise<void> {
try {
const versionIdentifier: string = core.getInput('identifier') || ''
const payloadLabels = context.payload.pull_request?.labels || []
Expand Down

0 comments on commit 055bc5b

Please sign in to comment.