Skip to content

Commit

Permalink
Add initial stub for resolve-environment action
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Jun 13, 2023
1 parent b8f204c commit dce63d8
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
41 changes: 41 additions & 0 deletions lib/resolve-environment-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/resolve-environment-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions resolve-environment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: 'CodeQL: Resolve Build Environment'
description: 'Attempt to infer a suitable environment configuration for the autobuilder'
author: 'GitHub'
runs:
using: 'node16'
main: '../lib/resolve-environment-action.js'
20 changes: 20 additions & 0 deletions src/resolve-environment-action.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import * as core from "@actions/core";

import { checkForTimeout, wrapError } from "./util";

async function run() {
return;
}

async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(
`resolve environment action failed: ${wrapError(error).message}`
);
}
await checkForTimeout();
}

void runWrapper();

0 comments on commit dce63d8

Please sign in to comment.