File tree 5 files changed +21
-15
lines changed 5 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ jobs:
223
223
integration-container,
224
224
integration-ssh,
225
225
integration-ssh-third-party-client,
226
- integration-env
226
+ integration-env,
227
227
]
228
228
runs-on : ubuntu-latest
229
229
steps :
Original file line number Diff line number Diff line change @@ -105,9 +105,8 @@ export const action: ActionInterface = {
105
105
? getInput ( 'git-config-email' )
106
106
: pusher && pusher . email
107
107
? pusher . email
108
- : `${
109
- process . env . GITHUB_ACTOR || 'github-pages-deploy-action'
110
- } @users.noreply.${
108
+ : `${ process . env . GITHUB_ACTOR ||
109
+ 'github-pages-deploy-action' } @users.noreply.${
111
110
process . env . GITHUB_SERVER_URL
112
111
? stripProtocolFromUrl ( process . env . GITHUB_SERVER_URL )
113
112
: 'github.com'
Original file line number Diff line number Diff line change @@ -131,11 +131,15 @@ export async function deploy(action: ActionInterface): Promise<Status> {
131
131
await generateWorktree ( action , temporaryDeploymentDirectory , branchExists )
132
132
133
133
/* Relaxes permissions of folder due to be deployed so rsync can write to/from it. */
134
- await execute (
135
- `chmod -R +rw ${ action . folderPath } ` ,
136
- action . workspace ,
137
- action . silent
138
- )
134
+ try {
135
+ await execute (
136
+ `chmod -R +rw ${ action . folderPath } ` ,
137
+ action . workspace ,
138
+ action . silent
139
+ )
140
+ } catch {
141
+ info ( `Unable to modify permissions…` )
142
+ }
139
143
140
144
// Ensures that items that need to be excluded from the clean job get parsed.
141
145
let excludes = ''
Original file line number Diff line number Diff line change @@ -23,11 +23,14 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
23
23
appendFileSync ( sshKnownHostsDirectory , sshGitHubKnownHostDss )
24
24
25
25
// Initializes SSH agent.
26
- const agentOutput = execFileSync ( 'ssh-agent' ) . toString ( ) . split ( '\n' )
26
+ const agentOutput = execFileSync ( 'ssh-agent' )
27
+ . toString ( )
28
+ . split ( '\n' )
27
29
28
30
agentOutput . map ( line => {
29
- const exportableVariables =
30
- / ^ ( S S H _ A U T H _ S O C K | S S H _ A G E N T _ P I D ) = ( .* ) ; e x p o r t \1/ . exec ( line )
31
+ const exportableVariables = / ^ ( S S H _ A U T H _ S O C K | S S H _ A G E N T _ P I D ) = ( .* ) ; e x p o r t \1/ . exec (
32
+ line
33
+ )
31
34
32
35
if ( exportableVariables && exportableVariables . length ) {
33
36
exportVariable ( exportableVariables [ 1 ] , exportableVariables [ 2 ] )
Original file line number Diff line number Diff line change @@ -96,9 +96,9 @@ export const suppressSensitiveInformation = (
96
96
return value
97
97
}
98
98
99
- const orderedByLength = (
100
- [ action . token , action . repositoryPath ] . filter ( Boolean ) as string [ ]
101
- ) . sort ( ( a , b ) => b . length - a . length )
99
+ const orderedByLength = ( [ action . token , action . repositoryPath ] . filter (
100
+ Boolean
101
+ ) as string [ ] ) . sort ( ( a , b ) => b . length - a . length )
102
102
103
103
for ( const find of orderedByLength ) {
104
104
value = replaceAll ( value , find , '***' )
You can’t perform that action at this time.
0 commit comments