Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdd2cdf

Browse files
committed
Also includelanguage in error status report forstart-proxy, if available
1 parentfb14878 commitbdd2cdf

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

‎lib/start-proxy-action.js‎

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/start-proxy-action.ts‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { pki } from "node-forge";
88
import*asactionsUtilfrom"./actions-util";
99
import{getApiDetails,getAuthorizationHeaderFor}from"./api-client";
1010
import{Config}from"./config-utils";
11+
import{KnownLanguage}from"./languages";
1112
import{getActionsLogger,Logger}from"./logging";
1213
import{
1314
Credential,
@@ -128,6 +129,7 @@ async function runWrapper() {
128129
actionsUtil.persistInputs();
129130

130131
constlogger=getActionsLogger();
132+
letlanguage:KnownLanguage|undefined;
131133

132134
try{
133135
// Setup logging for the proxy
@@ -137,7 +139,7 @@ async function runWrapper() {
137139

138140
// Get the configuration options
139141
constlanguageInput=actionsUtil.getOptionalInput("language");
140-
constlanguage=languageInput ?parseLanguage(languageInput) :undefined;
142+
language=languageInput ?parseLanguage(languageInput) :undefined;
141143
constcredentials=getCredentials(
142144
logger,
143145
actionsUtil.getOptionalInput("registry_secrets"),
@@ -171,7 +173,7 @@ async function runWrapper() {
171173
awaitsendSuccessStatusReport(
172174
startedAt,
173175
{
174-
languages:language?[language] :[],
176+
languages:language&&[language],
175177
},
176178
proxyConfig.all_credentials.map((c)=>c.type),
177179
logger,
@@ -186,7 +188,9 @@ async function runWrapper() {
186188
ActionName.StartProxy,
187189
getActionsStatus(error),
188190
startedAt,
189-
undefined,
191+
{
192+
languages:language&&[language],
193+
},
190194
awaitutil.checkDiskUsage(logger),
191195
logger,
192196
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp