mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Formatting fixes
This commit is contained in:
parent
5fa057fd94
commit
0387820304
@ -26,9 +26,8 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
|
|||||||
const agentOutput = execFileSync('ssh-agent').toString().split('\n')
|
const agentOutput = execFileSync('ssh-agent').toString().split('\n')
|
||||||
|
|
||||||
agentOutput.map(line => {
|
agentOutput.map(line => {
|
||||||
const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(
|
const exportableVariables =
|
||||||
line
|
/^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line)
|
||||||
)
|
|
||||||
|
|
||||||
if (exportableVariables && exportableVariables.length) {
|
if (exportableVariables && exportableVariables.length) {
|
||||||
exportVariable(exportableVariables[1], exportableVariables[2])
|
exportVariable(exportableVariables[1], exportableVariables[2])
|
||||||
|
@ -79,9 +79,9 @@ export const suppressSensitiveInformation = (
|
|||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
const orderedByLength = ([action.token, action.repositoryPath].filter(
|
const orderedByLength = (
|
||||||
Boolean
|
[action.token, action.repositoryPath].filter(Boolean) as string[]
|
||||||
) as string[]).sort((a, b) => b.length - a.length)
|
).sort((a, b) => b.length - a.length)
|
||||||
|
|
||||||
for (const find of orderedByLength) {
|
for (const find of orderedByLength) {
|
||||||
value = replaceAll(value, find, '***')
|
value = replaceAll(value, find, '***')
|
||||||
|
Loading…
Reference in New Issue
Block a user