Skip to content

Commit 119d340

Browse files
committed
Formatting
1 parent d34d41a commit 119d340

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
integration-container,
224224
integration-ssh,
225225
integration-ssh-third-party-client,
226-
integration-env,
226+
integration-env
227227
]
228228
runs-on: ubuntu-latest
229229
steps:

src/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ export const action: ActionInterface = {
105105
? getInput('git-config-email')
106106
: pusher && pusher.email
107107
? pusher.email
108-
: `${process.env.GITHUB_ACTOR ||
109-
'github-pages-deploy-action'}@users.noreply.${
108+
: `${
109+
process.env.GITHUB_ACTOR || 'github-pages-deploy-action'
110+
}@users.noreply.${
110111
process.env.GITHUB_SERVER_URL
111112
? stripProtocolFromUrl(process.env.GITHUB_SERVER_URL)
112113
: 'github.com'

src/ssh.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
2323
appendFileSync(sshKnownHostsDirectory, sshGitHubKnownHostDss)
2424

2525
// Initializes SSH agent.
26-
const agentOutput = execFileSync('ssh-agent')
27-
.toString()
28-
.split('\n')
26+
const agentOutput = execFileSync('ssh-agent').toString().split('\n')
2927

3028
agentOutput.map(line => {
31-
const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(
32-
line
33-
)
29+
const exportableVariables =
30+
/^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line)
3431

3532
if (exportableVariables && exportableVariables.length) {
3633
exportVariable(exportableVariables[1], exportableVariables[2])

src/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ export const suppressSensitiveInformation = (
9696
return value
9797
}
9898

99-
const orderedByLength = ([action.token, action.repositoryPath].filter(
100-
Boolean
101-
) as string[]).sort((a, b) => b.length - a.length)
99+
const orderedByLength = (
100+
[action.token, action.repositoryPath].filter(Boolean) as string[]
101+
).sort((a, b) => b.length - a.length)
102102

103103
for (const find of orderedByLength) {
104104
value = replaceAll(value, find, '***')

0 commit comments

Comments
 (0)