Skip to content

Commit ebca0c3

Browse files
committed
Skip this Action on non-Windows platforms
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 2053b5f commit ebca0c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
import * as core from '@actions/core'
2+
import process from 'process'
23
import {get} from './src/downloader'
34

45
async function run(): Promise<void> {
56
try {
7+
if (process.platform !== 'win32') {
8+
core.warning(
9+
`Skipping this Action because it only works on Windows, not on ${process.platform}`
10+
)
11+
return
12+
}
613
const flavor = core.getInput('flavor')
714
const architecture = core.getInput('architecture')
815

0 commit comments

Comments
 (0)