From 8b69b3574529113fdb9f52419d200e970572a0ba Mon Sep 17 00:00:00 2001 From: Corey Butler Date: Wed, 1 Apr 2020 13:26:50 -0500 Subject: [PATCH] Update imports --- app/lib/tag.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/tag.js b/app/lib/tag.js index 050b08e..49130ce 100644 --- a/app/lib/tag.js +++ b/app/lib/tag.js @@ -1,9 +1,10 @@ import core from '@actions/core' import os from 'os' -import { GitHub, context } from '@actions/github' +import GitHub from '@actions/github' // Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage const github = new GitHub(process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN) +const context = github.context // Get owner and repo from context of payload that triggered the action const { owner, repo } = context.repo