mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-11-22 00:01:08 +07:00
Update imports
This commit is contained in:
parent
04c17737dc
commit
8b69b35745
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user