mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Randomizes deployment branch name
This commit is contained in:
parent
5cfaab981e
commit
6d74177c08
@ -93,8 +93,10 @@ export async function generateBranch(action: ActionInterface): Promise<void> {
|
|||||||
|
|
||||||
/* Runs the necessary steps to make the deployment. */
|
/* Runs the necessary steps to make the deployment. */
|
||||||
export async function deploy(action: ActionInterface): Promise<Status> {
|
export async function deploy(action: ActionInterface): Promise<Status> {
|
||||||
const temporaryDeploymentDirectory = 'gh-action-temp-deployment-folder'
|
const temporaryDeploymentDirectory = 'github-pages-deploy-action-temp-deployment-folder'
|
||||||
const temporaryDeploymentBranch = 'gh-action-temp-deployment-branch'
|
const temporaryDeploymentBranch = `github-pages-deploy-action/${Math.random()
|
||||||
|
.toString(36)
|
||||||
|
.substr(2, 9)}`
|
||||||
|
|
||||||
info('Starting to commit changes…')
|
info('Starting to commit changes…')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user