Skip to content

Commit fb65b6c

Browse files
authored
Merge pull request #2672 from github/mbg/start-proxy/include-type-in-urls-output
2 parents 3407610 + b25558b commit fb65b6c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

lib/start-proxy-action.js

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/start-proxy-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/start-proxy-action.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ async function startProxy(
174174

175175
const registry_urls = config.all_credentials
176176
.filter((credential) => credential.url !== undefined)
177-
.map((credential) => credential.url);
177+
.map((credential) => ({
178+
type: credential.type,
179+
url: credential.url,
180+
}));
178181
core.setOutput("proxy_urls", JSON.stringify(registry_urls));
179182
} catch (error) {
180183
core.setFailed(`start-proxy action failed: ${util.getErrorMessage(error)}`);

start-proxy/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ outputs:
2424
proxy_ca_certificate:
2525
description: The proxy's internal CA certificate in PEM format
2626
proxy_urls:
27-
description: The URLs of the configured registries, as a JSON array.
27+
description: A stringified JSON array of objects containing the types and URLs of the configured registries.
2828
runs:
2929
using: node20
3030
main: "../lib/start-proxy-action.js"

0 commit comments

Comments
 (0)