Skip to content

Commit 6cb83dc

Browse files
committed
corrected unlink
1 parent cc8bedf commit 6cb83dc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,6 +2886,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
28862886
const core_1 = __webpack_require__(470);
28872887
const fs_1 = __webpack_require__(747);
28882888
const os_1 = __webpack_require__(87);
2889+
const path_1 = __webpack_require__(622);
28892890
const GeneratorActionStepDefinition_1 = __importDefault(__webpack_require__(279));
28902891
const TempPaths_1 = __importDefault(__webpack_require__(511));
28912892
const Execution_1 = __importDefault(__webpack_require__(117));
@@ -2935,7 +2936,7 @@ class default_1 {
29352936
getAfterActions() {
29362937
return [
29372938
new GeneratorActionStepDefinition_1.default(null, 'Renaming README.md to Home.md...', fs_1.renameSync, TempPaths_1.default.getFilename('new-docs-workdir', 'README.md'), TempPaths_1.default.getFilename('new-docs-workdir', 'HOME.md')),
2938-
new GeneratorActionStepDefinition_1.default(null, 'Deleting config...', fs_1.unlinkSync, TempPaths_1.default.getFilename('new-docs-workdir', '.phpdoc-md'))
2939+
new GeneratorActionStepDefinition_1.default(null, 'Deleting config...', fs_1.unlinkSync, path_1.join(process.cwd(), '.phpdoc-md'))
29392940
];
29402941
}
29412942
/**

src/generators/clean-phpdoc-md.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import GeneratorInterface from '../GeneratorInterface'
22
import {debug, getInput} from '@actions/core'
33
import {renameSync, unlinkSync, writeFileSync} from 'fs'
44
import {EOL} from 'os'
5+
import {join} from 'path'
56
import GeneratorActionStepDefinition from '../GeneratorActionStepDefinition'
67
import TempPaths from '../handlers/TempPaths'
78
import Execution from '../handlers/Execution'
@@ -71,7 +72,7 @@ export default class implements GeneratorInterface {
7172
null,
7273
'Deleting config...',
7374
unlinkSync,
74-
TempPaths.getFilename('new-docs-workdir', '.phpdoc-md')
75+
join(process.cwd(), '.phpdoc-md')
7576
)
7677
]
7778
}

0 commit comments

Comments
 (0)