Skip to content

Commit

Permalink
set non linux os to failed (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoChilia authored Nov 24, 2023
1 parent 1828f1c commit 49022ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export async function main() {
const CONTAINER_NAME = `MICROSOFT_AZURE_CLI_${getCurrentTime()}_CONTAINER`;
try {
if (process.env.RUNNER_OS != 'Linux') {
core.setFailed('Please use Linux based OS as a runner.');
return;
throw new Error('Please use Linux-based OS as a runner.');
}

let inlineScript: string = core.getInput('inlineScript', { required: true });
Expand Down

0 comments on commit 49022ee

Please sign in to comment.