This commit is contained in:
Konrad Pabjan
2023-10-27 16:41:02 -04:00
parent 961a4a1557
commit da4705cd08
4 changed files with 9 additions and 3 deletions

5
dist/index.js generated vendored
View File

@@ -9866,10 +9866,12 @@ async function processRuntimeResponse(res, requestOptions) {
}
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
core.info("Creating octokit")
const octokit = github.getOctokit(githubToken)
core.info("Octokit created")
try {
console.log(`Fetching artifact metadata for run ${runId}...`)
core.info(`Fetching artifact metadata for run ${runId}...`)
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', {
owner: github.context.repo.owner,
@@ -10111,6 +10113,7 @@ class Deployment {
core.debug(`Action ID: ${this.actionsId}`)
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
core.info("Getting artifact's metadata...")
const artifactData = await getArtifactMetadata({
githubToken: this.githubToken,
workflowRunId: this.workflowRun,

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -55,10 +55,12 @@ async function processRuntimeResponse(res, requestOptions) {
}
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
core.info("Creating octokit")
const octokit = github.getOctokit(githubToken)
core.info("Octokit created")
try {
console.log(`Fetching artifact metadata for run ${runId}...`)
core.info(`Fetching artifact metadata for run ${runId}...`)
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', {
owner: github.context.repo.owner,

View File

@@ -58,6 +58,7 @@ class Deployment {
core.debug(`Action ID: ${this.actionsId}`)
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
core.info("Getting artifact's metadata...")
const artifactData = await getArtifactMetadata({
githubToken: this.githubToken,
workflowRunId: this.workflowRun,