mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
chore: Formatting & Adding action yaml data
This commit is contained in:
parent
079ec0e130
commit
2991688e3f
@ -470,6 +470,5 @@ describe('git', () => {
|
||||
expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
|
||||
expect(response).toBe(Status.SUCCESS)
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user