Skip to content

Commit 07cf69e

Browse files
fix: use path.join for file path construction in file-exists action
1 parent 64d9f6c commit 07cf69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/file-exists/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
with:
1313
script: |
1414
const fs = require('fs');
15-
const filePath = process.env.GITHUB_WORKSPACE + '/' + '${{ inputs.file }}';
15+
const filePath = path.join(process.env.GITHUB_WORKSPACE, '${{ inputs.file }}');
1616
1717
if (!fs.existsSync(filePath)) {
1818
core.setFailed(`❌ File does not exist: ${filePath}`);

0 commit comments

Comments
 (0)