Skip to content

Commit 07cf1dc

Browse files
committed
Make sure Git for Windows' bash.exe is found in the PATH
This provides the convenience that after this Action, a regular Bash task will use Git for Windows' SDK's Bash: - shell: bash run: uname -s This will run in Git for Windows' SDK and therefore report something like this: MINGW64_NT-10.0-19042 Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bbbd485 commit 07cf1dc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cSpell.ignoreRegExpList": [
33
"CHERE_INVOKING",
4+
"SDK's",
45
"makepkg-git",
56
"mingw-w64-git",
67
"mingw64",

main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ async function run(): Promise<void> {
2222
outputDirectory,
2323
verbose.match(/^\d+$/) ? parseInt(verbose) : verbose === 'true'
2424
)
25+
26+
// Set up PATH so that Git for Windows' SDK's `bash.exe` is found
27+
core.addPath(`${outputDirectory}/usr/bin`)
2528
} catch (error) {
2629
core.setFailed(error.message)
2730
}

0 commit comments

Comments
 (0)