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(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
|
||||||
expect(response).toBe(Status.SUCCESS)
|
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."
|
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
|
required: false
|
||||||
|
|
||||||
|
tag:
|
||||||
|
description: "Add a tag to the commit. Only works when 'dry-run' is not used."
|
||||||
|
required: false
|
||||||
|
|
||||||
single-commit:
|
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."
|
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
|
required: false
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { info, warning } from '@actions/core'
|
import {info} from '@actions/core'
|
||||||
import {mkdirP, rmRF} from '@actions/io'
|
import {mkdirP, rmRF} from '@actions/io'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
import {
|
import {
|
||||||
@ -317,7 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
|||||||
info(`Changes committed to the ${action.branch} branch… 📦`)
|
info(`Changes committed to the ${action.branch} branch… 📦`)
|
||||||
|
|
||||||
if (action.tag) {
|
if (action.tag) {
|
||||||
info(`Adding a tag '${action.tag}' to the commit`)
|
info(`Adding tag '${action.tag}' to the commit`)
|
||||||
await execute(
|
await execute(
|
||||||
`git tag ${action.tag}`,
|
`git tag ${action.tag}`,
|
||||||
`${action.workspace}/${temporaryDeploymentDirectory}`,
|
`${action.workspace}/${temporaryDeploymentDirectory}`,
|
||||||
@ -330,7 +330,9 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
|||||||
action.silent
|
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
|
return Status.SUCCESS
|
||||||
|
Loading…
Reference in New Issue
Block a user