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