Skip to content

Commit a1dad46

Browse files
committed
Fix: rename for windows
1 parent 781c691 commit a1dad46

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/test-workflow.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,3 @@ jobs:
2222

2323
- name: test fpm
2424
run: fpm --help
25-
26-
- name: Shell check (windows)
27-
if: contains(matrix.os, 'windows')
28-
run: |
29-
echo $ENV:PATH
30-
cmd /c where fpm
31-
fpm --help
32-
cmd /c fpm --help

index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ async function main(){
5050
}
5151

5252
// Rename to 'fpm'
53-
await io.mv(fpmPath, downloadDir + '/' + 'fpm');
53+
if (process.platform === 'win32') {
54+
55+
await io.mv(fpmPath, downloadDir + '/' + 'fpm.exe');
56+
57+
} else {
58+
59+
await io.mv(fpmPath, downloadDir + '/' + 'fpm');
60+
61+
}
5462

5563
// Add to path
5664
core.addPath( downloadDir );

0 commit comments

Comments
 (0)