File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12065,6 +12065,8 @@ function runAction(opts) {
12065
12065
core . startGroup ( 'Cloning private action' ) ;
12066
12066
repoUrl = "https://" + opts . token + "@github.com/" + repo + ".git" ;
12067
12067
cmd = [ 'git clone' , repoUrl , opts . workDirectory ] . join ( ' ' ) ;
12068
+ core . info ( "Cleaning workDirectory" ) ;
12069
+ rimraf_1 . sync ( opts . workDirectory ) ;
12068
12070
core . info ( "Cloning action from https://***TOKEN***@github.com/" + repo + ".git" + ( sha ? " (SHA: " + sha + ")" : '' ) ) ;
12069
12071
return [ 4 /*yield*/ , exec . exec ( cmd ) ] ;
12070
12072
case 1 :
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ export async function runAction(opts: {
46
46
const repoUrl = `https://${ opts . token } @github.com/${ repo } .git` ;
47
47
const cmd = [ 'git clone' , repoUrl , opts . workDirectory ] . join ( ' ' ) ;
48
48
49
+ core . info ( `Cleaning workDirectory` ) ;
50
+ sync ( opts . workDirectory ) ;
51
+
49
52
core . info (
50
53
`Cloning action from https://***TOKEN***@github.com/${ repo } .git${ sha ? ` (SHA: ${ sha } )` : '' } `
51
54
) ;
You can’t perform that action at this time.
0 commit comments