From 94c43524554bca90a2ef85dd8ceb737c03a7499f Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Mon, 17 Apr 2023 15:39:59 +0200 Subject: [PATCH] Update RunnerServicePayload --- actionsrunner/runner.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/actionsrunner/runner.go b/actionsrunner/runner.go index e8eaa0e..56a1a57 100644 --- a/actionsrunner/runner.go +++ b/actionsrunner/runner.go @@ -407,7 +407,8 @@ type RunnerJobRequestRef struct { } type RunnerServicePayload struct { - StreamID string `json:"streamID"` + StreamID string `json:"streamId"` // Deprecated: https://github.com/actions/runner/pull/2547 + JobMessageID string `json:"jobMessageId"` } type plainTextFormatter struct { @@ -460,7 +461,8 @@ func runJob(runnerenv RunnerEnvironment, joblock *sync.Mutex, vssConnection *pro acquirejobUrl.Path = path.Join(acquirejobUrl.Path, "acquirejob") vssConnection.TenantURL = runServiceUrl payload := &RunnerServicePayload{ - StreamID: rjrr.RunnerRequestId, + StreamID: rjrr.RunnerRequestId, // Deprecated: https://github.com/actions/runner/pull/2547 + JobMessageID: rjrr.RunnerRequestId, } err = vssConnection.RequestWithContext2(jobctx, "POST", acquirejobUrl.String(), "", payload, &src) }