Skip to content

Commit 2991688

Browse files
committed
chore: Formatting & Adding action yaml data
1 parent 079ec0e commit 2991688

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

__tests__/git.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,5 @@ describe('git', () => {
470470
expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
471471
expect(response).toBe(Status.SUCCESS)
472472
})
473-
474473
})
475474
})

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ inputs:
8282
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."
8383
required: false
8484

85+
tag:
86+
description: "Add a tag to the commit. Only works when 'dry-run' is not used."
87+
required: false
88+
8589
single-commit:
8690
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."
8791
required: false

src/git.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { info, warning } from '@actions/core'
1+
import {info} from '@actions/core'
22
import {mkdirP, rmRF} from '@actions/io'
33
import fs from 'fs'
44
import {
@@ -317,7 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
317317
info(`Changes committed to the ${action.branch} branch… 📦`)
318318

319319
if (action.tag) {
320-
info(`Adding a tag '${action.tag}' to the commit`)
320+
info(`Adding tag '${action.tag}' to the commit`)
321321
await execute(
322322
`git tag ${action.tag}`,
323323
`${action.workspace}/${temporaryDeploymentDirectory}`,
@@ -330,7 +330,9 @@ export async function deploy(action: ActionInterface): Promise<Status> {
330330
action.silent
331331
)
332332

333-
info(`Tag '${action.tag}' created and pushed to the ${action.branch} branch… 📦`)
333+
info(
334+
`Tag '${action.tag}' created and pushed to the ${action.branch} branch… 🏷️`
335+
)
334336
}
335337

336338
return Status.SUCCESS

0 commit comments

Comments
 (0)