We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5bb9ac commit 01ac706Copy full SHA for 01ac706
1 file changed
scripts/ci/main.ts
@@ -1,17 +1,14 @@
1
import { notice } from '@actions/core';
2
import { bold } from '@std/fmt/colors';
3
4
-export function main(): void {
5
- const msg = `This is a test run. ${bold('Everything is working ok!')}`;
+export async function main(): Promise<void> {
+ if (Deno.env.get('CI')) {
6
+ console.log("We're in a CI environment!");
7
+ }
8
- notice(msg, {
- title: 'Test run',
9
- file: import.meta.filename,
10
- startLine: 5,
11
- endLine: 12,
12
- });
+ console.log(`We are ${bold('not')} in a CI environment!`);
13
}
14
15
if (import.meta.main) {
16
- main();
+ await main();
17
0 commit comments