Skip to content

Commit

Permalink
Add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco committed May 16, 2020
1 parent fe61c51 commit cba5909
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import getTagName from './get-tag-name'
export default async function buildAndTagAction(tools: Toolkit) {
if (tools.inputs.setup) {
// Run the setup script
tools.log.info(`Running setup script: ${tools.inputs.setup}`)
await exec(tools.inputs.setup)
} else {
tools.log.info('Skipping setup script, none provided.')
}

// Get the tag to update
const tagName = getTagName(tools)
tools.log.info(`Updating tag [${tagName}]`)

// Create a new commit, with the new tree
const commit = await createCommit(tools)
Expand Down

0 comments on commit cba5909

Please sign in to comment.