Skip to content

Commit d714dbd

Browse files
Merge pull request #47 from InVisionApp/develop
Dep bumps and clean workDirectory before cloning private action
2 parents d806539 + b9736ee commit d714dbd

File tree

4 files changed

+54
-81
lines changed

4 files changed

+54
-81
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12065,6 +12065,8 @@ function runAction(opts) {
1206512065
core.startGroup('Cloning private action');
1206612066
repoUrl = "https://" + opts.token + "@github.com/" + repo + ".git";
1206712067
cmd = ['git clone', repoUrl, opts.workDirectory].join(' ');
12068+
core.info("Cleaning workDirectory");
12069+
rimraf_1.sync(opts.workDirectory);
1206812070
core.info("Cloning action from https://***TOKEN***@github.com/" + repo + ".git" + (sha ? " (SHA: " + sha + ")" : ''));
1206912071
return [4 /*yield*/, exec.exec(cmd)];
1207012072
case 1:

package-lock.json

Lines changed: 44 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"url": "https://github.com/invisionapp/private-action-loader/issues"
2525
},
2626
"dependencies": {
27-
"@actions/core": "^1.2.2",
27+
"@actions/core": "^1.2.3",
2828
"@actions/exec": "^1.0.3",
2929
"rimraf": "^3.0.2",
3030
"yaml": "^1.7.2"
@@ -33,12 +33,12 @@
3333
"@commitlint/cli": "^8.3.5",
3434
"@commitlint/config-conventional": "^8.3.4",
3535
"@semantic-release/commit-analyzer": "^8.0.1",
36-
"@types/jest": "^25.1.3",
37-
"@types/node": "^13.7.4",
36+
"@types/jest": "^25.1.4",
37+
"@types/node": "^13.9.0",
3838
"@types/rimraf": "^2.0.3",
3939
"@types/yaml": "^1.2.0",
40-
"@typescript-eslint/eslint-plugin": "^2.21.0",
41-
"@typescript-eslint/parser": "^2.21.0",
40+
"@typescript-eslint/eslint-plugin": "^2.22.0",
41+
"@typescript-eslint/parser": "^2.22.0",
4242
"@zeit/ncc": "^0.21.1",
4343
"eslint": "^6.8.0",
4444
"eslint-config-prettier": "^6.10.0",

src/action.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export async function runAction(opts: {
4646
const repoUrl = `https://${opts.token}@github.com/${repo}.git`;
4747
const cmd = ['git clone', repoUrl, opts.workDirectory].join(' ');
4848

49+
core.info(`Cleaning workDirectory`);
50+
sync(opts.workDirectory);
51+
4952
core.info(
5053
`Cloning action from https://***TOKEN***@github.com/${repo}.git${sha ? ` (SHA: ${sha})` : ''}`
5154
);

0 commit comments

Comments
 (0)