Defer looking up RUNTIME_URL until JIT

This commit is contained in:
James M. Greene
2023-03-05 14:36:05 -06:00
parent 1947635a3f
commit c8c985cff1
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@@ -9606,9 +9606,9 @@ const hc = __nccwpck_require__(6255)
// All variables we need from the runtime are loaded here
const getContext = __nccwpck_require__(1319)
const { runTimeUrl: RUNTIME_URL } = getContext()
async function getSignedArtifactUrl({ runtimeToken, workflowRunId, artifactName }) {
const { runTimeUrl: RUNTIME_URL } = getContext()
const artifactExchangeUrl = `${RUNTIME_URL}_apis/pipelines/workflows/${workflowRunId}/artifacts?api-version=6.0-preview`
const httpClient = new hc.HttpClient()

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -4,9 +4,9 @@ const hc = require('@actions/http-client')
// All variables we need from the runtime are loaded here
const getContext = require('./context')
const { runTimeUrl: RUNTIME_URL } = getContext()
async function getSignedArtifactUrl({ runtimeToken, workflowRunId, artifactName }) {
const { runTimeUrl: RUNTIME_URL } = getContext()
const artifactExchangeUrl = `${RUNTIME_URL}_apis/pipelines/workflows/${workflowRunId}/artifacts?api-version=6.0-preview`
const httpClient = new hc.HttpClient()