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

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 }