This commit is contained in:
Konrad Pabjan
2023-10-27 17:00:48 -04:00
parent 2196d013ad
commit 324d9f15de
4 changed files with 10 additions and 9 deletions

8
dist/index.js generated vendored
View File

@@ -9871,12 +9871,13 @@ async function getArtifactMetadata({ githubToken, runId, artifactName }) {
core.info("Octokit created")
try {
core.info(`Fetching artifact metadata for run ${runId}...`)
core.info(`Fetching artifact metadata for run ${runId} and name ${artifactName}...`)
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', {
const response = await octokit.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts?name={artifactName}", {
owner: github.context.repo.owner,
repo: github.context.repo.repo,
run_id: runId
run_id: runId,
artifactName: artifactName
})
return response.data
@@ -10272,7 +10273,6 @@ class Deployment {
module.exports = { Deployment, MAX_TIMEOUT, ONE_GIGABYTE, SIZE_LIMIT_DESCRIPTION }
/***/ }),
/***/ 2877:

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -60,12 +60,13 @@ async function getArtifactMetadata({ githubToken, runId, artifactName }) {
core.info("Octokit created")
try {
core.info(`Fetching artifact metadata for run ${runId}...`)
core.info(`Fetching artifact metadata for run ${runId} and name ${artifactName}...`)
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', {
const response = await octokit.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts?name={artifactName}", {
owner: github.context.repo.owner,
repo: github.context.repo.repo,
run_id: runId
run_id: runId,
artifactName: artifactName
})
return response.data

View File

@@ -215,4 +215,4 @@ class Deployment {
}
}
module.exports = { Deployment, MAX_TIMEOUT, ONE_GIGABYTE, SIZE_LIMIT_DESCRIPTION }
module.exports = { Deployment, MAX_TIMEOUT, ONE_GIGABYTE, SIZE_LIMIT_DESCRIPTION }