mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
append commit SHA to commit msg, only if not a part of it already. (#236)
* append commit SHA to commit msg, only if not a part of it already. * user provided commit message will remain unmodified. * Update src/git.ts check, if SHA exists, before appending to commit message. Co-Authored-By: James Ives <iam@jamesiv.es> * linting bug fix (from failed workflow). Co-authored-by: James Ives <iam@jamesiv.es>
This commit is contained in:
parent
97674fcf59
commit
145d802b17
10
src/git.ts
10
src/git.ts
@ -100,11 +100,11 @@ export async function deploy(action: ActionInterface): Promise<void> {
|
||||
try {
|
||||
hasRequiredParameters(action)
|
||||
|
||||
const commitMessage = `${
|
||||
!isNullOrUndefined(action.commitMessage)
|
||||
? action.commitMessage
|
||||
: `Deploying to ${action.branch} from ${action.baseBranch}`
|
||||
} ${process.env.GITHUB_SHA ? `@ ${process.env.GITHUB_SHA}` : ''} 🚀`
|
||||
const commitMessage = !isNullOrUndefined(action.commitMessage)
|
||||
? (action.commitMessage as string)
|
||||
: `Deploying to ${action.branch} from ${action.baseBranch} ${
|
||||
process.env.GITHUB_SHA ? `@ ${process.env.GITHUB_SHA}` : ''
|
||||
} 🚀`
|
||||
|
||||
/*
|
||||
Checks to see if the remote exists prior to deploying.
|
||||
|
Loading…
Reference in New Issue
Block a user