chore: Formatting & Adding action yaml data

This commit is contained in:
James Ives 2022-07-17 09:36:10 -04:00
parent 079ec0e130
commit 2991688e3f
3 changed files with 9 additions and 4 deletions

View File

@ -470,6 +470,5 @@ describe('git', () => {
expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
expect(response).toBe(Status.SUCCESS)
})
})
})

View File

@ -82,6 +82,10 @@ inputs:
description: "This should point to where your project lives on the virtual machine. The GitHub Actions environment will set this for you. It is only neccersary to set this variable if you're using the node module."
required: false
tag:
description: "Add a tag to the commit. Only works when 'dry-run' is not used."
required: false
single-commit:
description: "This option can be used if you'd prefer to have a single commit on the deployment branch instead of maintaining the full history."
required: false

View File

@ -1,4 +1,4 @@
import { info, warning } from '@actions/core'
import {info} from '@actions/core'
import {mkdirP, rmRF} from '@actions/io'
import fs from 'fs'
import {
@ -317,7 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
info(`Changes committed to the ${action.branch} branch… 📦`)
if (action.tag) {
info(`Adding a tag '${action.tag}' to the commit`)
info(`Adding tag '${action.tag}' to the commit`)
await execute(
`git tag ${action.tag}`,
`${action.workspace}/${temporaryDeploymentDirectory}`,
@ -330,7 +330,9 @@ export async function deploy(action: ActionInterface): Promise<Status> {
action.silent
)
info(`Tag '${action.tag}' created and pushed to the ${action.branch} branch… 📦`)
info(
`Tag '${action.tag}' created and pushed to the ${action.branch} branch… 🏷️`
)
}
return Status.SUCCESS