Skip to content

Commit dce63d8

Browse files
committed
Add initial stub for resolve-environment action
1 parent b8f204c commit dce63d8

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

lib/resolve-environment-action.js

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/resolve-environment-action.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resolve-environment/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: 'CodeQL: Resolve Build Environment'
2+
description: 'Attempt to infer a suitable environment configuration for the autobuilder'
3+
author: 'GitHub'
4+
runs:
5+
using: 'node16'
6+
main: '../lib/resolve-environment-action.js'

src/resolve-environment-action.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import * as core from "@actions/core";
2+
3+
import { checkForTimeout, wrapError } from "./util";
4+
5+
async function run() {
6+
return;
7+
}
8+
9+
async function runWrapper() {
10+
try {
11+
await run();
12+
} catch (error) {
13+
core.setFailed(
14+
`resolve environment action failed: ${wrapError(error).message}`
15+
);
16+
}
17+
await checkForTimeout();
18+
}
19+
20+
void runWrapper();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy