This commit is contained in:
Corey Butler 2020-04-01 14:04:11 -05:00
parent 3f4bae1fc4
commit e9081bf57f

View File

@ -5,8 +5,8 @@ import gh from '@actions/github'
// Get authenticated GitHub client (Ocktokit): https://github.com/actions/toolkit/tree/master/packages/github#usage
const github = new gh.GitHub(process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN)
// Get owner and repo from context of payload that triggered the action
const { owner, repo } = gh.context
core.warning(`Owner: ${owner}, Repository: ${JSON.stringify(repo)}`)
const { owner, repo } = gh.context.repo
export default class Tag {
constructor (prefix, version, postfix) {
this.prefix = prefix