Skip to content

Commit 766928d

Browse files
committed
Call getJobUUID in start-proxy
The `start-proxy` step precedes `init` in Default Setup
1 parent 049af32 commit 766928d

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

lib/entry-points.js

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

src/start-proxy-action.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import * as path from "path";
33

44
import * as core from "@actions/core";
55

6+
import { ActionState } from "./action-common";
67
import * as actionsUtil from "./actions-util";
78
import { getGitHubVersion } from "./api-client";
9+
import { Env } from "./environment";
810
import { FeatureEnablement, initFeatures } from "./feature-flags";
911
import { BuiltInLanguage, parseBuiltInLanguage } from "./languages";
1012
import { getActionsLogger, Logger } from "./logging";
@@ -23,7 +25,11 @@ import {
2325
import { generateCertificateAuthority } from "./start-proxy/ca";
2426
import { checkProxyEnvironment } from "./start-proxy/environment";
2527
import { checkConnections } from "./start-proxy/reachability";
26-
import { ActionName, sendUnhandledErrorStatusReport } from "./status-report";
28+
import {
29+
ActionName,
30+
getJobUUID,
31+
sendUnhandledErrorStatusReport,
32+
} from "./status-report";
2733
import * as util from "./util";
2834

2935
async function run(startedAt: Date) {
@@ -35,6 +41,14 @@ async function run(startedAt: Date) {
3541
let language: BuiltInLanguage | undefined;
3642

3743
try {
44+
const action: ActionState<["Logger", "Env"]> = {
45+
logger,
46+
env: new Env(process.env),
47+
};
48+
49+
// Create a unique identifier for this run.
50+
getJobUUID(action);
51+
3852
// Make inputs accessible in the `post` step.
3953
actionsUtil.persistInputs();
4054

0 commit comments

Comments
 (0)