Skip to content

Commit 6727ffe

Browse files
committed
chore: resolve formatting changes from newer prettier version
1 parent 48aeb19 commit 6727ffe

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

integration/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="UTF-8" />

src/constants.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,26 @@ export const action: ActionInterface = {
106106
email: !isNullOrUndefined(getInput('git-config-email'))
107107
? getInput('git-config-email')
108108
: pusher && pusher.email
109-
? pusher.email
110-
: `${
111-
process.env.GITHUB_ACTOR || 'github-pages-deploy-action'
112-
}@users.noreply.${
113-
process.env.GITHUB_SERVER_URL
114-
? stripProtocolFromUrl(process.env.GITHUB_SERVER_URL)
115-
: 'github.com'
116-
}`,
109+
? pusher.email
110+
: `${
111+
process.env.GITHUB_ACTOR || 'github-pages-deploy-action'
112+
}@users.noreply.${
113+
process.env.GITHUB_SERVER_URL
114+
? stripProtocolFromUrl(process.env.GITHUB_SERVER_URL)
115+
: 'github.com'
116+
}`,
117117
name: !isNullOrUndefined(getInput('git-config-name'))
118118
? getInput('git-config-name')
119119
: pusher && pusher.name
120-
? pusher.name
121-
: process.env.GITHUB_ACTOR
122-
? process.env.GITHUB_ACTOR
123-
: 'GitHub Pages Deploy Action',
120+
? pusher.name
121+
: process.env.GITHUB_ACTOR
122+
? process.env.GITHUB_ACTOR
123+
: 'GitHub Pages Deploy Action',
124124
repositoryName: !isNullOrUndefined(getInput('repository-name'))
125125
? getInput('repository-name')
126126
: repository && repository.full_name
127-
? repository.full_name
128-
: process.env.GITHUB_REPOSITORY,
127+
? repository.full_name
128+
: process.env.GITHUB_REPOSITORY,
129129
token: getInput('token'),
130130
singleCommit: !isNullOrUndefined(getInput('single-commit'))
131131
? getInput('single-commit').toLowerCase() === 'true'
@@ -136,9 +136,9 @@ export const action: ActionInterface = {
136136
sshKey: isNullOrUndefined(getInput('ssh-key'))
137137
? false
138138
: !isNullOrUndefined(getInput('ssh-key')) &&
139-
getInput('ssh-key').toLowerCase() === 'true'
140-
? true
141-
: getInput('ssh-key'),
139+
getInput('ssh-key').toLowerCase() === 'true'
140+
? true
141+
: getInput('ssh-key'),
142142
targetFolder: getInput('target-folder'),
143143
workspace: process.env.GITHUB_WORKSPACE || '',
144144
tag: getInput('tag')

src/util.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export const generateFolderPath = (action: ActionInterface): string => {
4747
return path.isAbsolute(folderName)
4848
? folderName
4949
: folderName.startsWith('~')
50-
? folderName.replace('~', process.env.HOME as string)
51-
: path.join(action.workspace, folderName)
50+
? folderName.replace('~', process.env.HOME as string)
51+
: path.join(action.workspace, folderName)
5252
}
5353

5454
/**
@@ -132,8 +132,8 @@ export const extractErrorMessage = (error: unknown): string =>
132132
error instanceof Error
133133
? error.message
134134
: typeof error == 'string'
135-
? error
136-
: JSON.stringify(error)
135+
? error
136+
: JSON.stringify(error)
137137

138138
/**
139139
* Strips the protocol from a provided URL.

0 commit comments

Comments
 (0)