Skip to content

Commit

Permalink
to info
Browse files Browse the repository at this point in the history
  • Loading branch information
jessie00chen committed Nov 5, 2020
1 parent c17ec45 commit 00a63ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ async function run() {

core.debug('Making tag...')
let tag = await git.git.createTag({owner, repo, tag: name, message: message.length > 0 ? message : 'Initial tag', object: process.env.GITHUB_SHA, type: 'commit'})
core.warning(`Created tag ${tag.data.sha}`)
core.info(`Created tag ${tag.data.sha}`)

core.debug('Making reference...')
let reference = await git.git.createRef({owner, repo, ref: `refs/tags/${tag.data.tag}`, sha: tag.data.sha})
core.warning(`Reference ${reference.data.ref} available at ${reference.data.url}`)
core.info(`Reference ${reference.data.ref} available at ${reference.data.url}`)

if (typeof tag === 'object' && typeof reference === 'object') {
core.setOutput('tagsha', tag.data.sha)
Expand Down

0 comments on commit 00a63ea

Please sign in to comment.