mirror of
https://github.com/actions/deploy-pages.git
synced 2026-05-13 03:16:46 +00:00
WIP
This commit is contained in:
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
@@ -9866,10 +9866,12 @@ async function processRuntimeResponse(res, requestOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
|
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
|
||||||
|
core.info("Creating octokit")
|
||||||
const octokit = github.getOctokit(githubToken)
|
const octokit = github.getOctokit(githubToken)
|
||||||
|
core.info("Octokit created")
|
||||||
|
|
||||||
try {
|
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', {
|
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', {
|
||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
@@ -10111,6 +10113,7 @@ class Deployment {
|
|||||||
core.debug(`Action ID: ${this.actionsId}`)
|
core.debug(`Action ID: ${this.actionsId}`)
|
||||||
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
||||||
|
|
||||||
|
core.info("Getting artifact's metadata...")
|
||||||
const artifactData = await getArtifactMetadata({
|
const artifactData = await getArtifactMetadata({
|
||||||
githubToken: this.githubToken,
|
githubToken: this.githubToken,
|
||||||
workflowRunId: this.workflowRun,
|
workflowRunId: this.workflowRun,
|
||||||
|
|||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -55,10 +55,12 @@ async function processRuntimeResponse(res, requestOptions) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
|
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
|
||||||
|
core.info("Creating octokit")
|
||||||
const octokit = github.getOctokit(githubToken)
|
const octokit = github.getOctokit(githubToken)
|
||||||
|
core.info("Octokit created")
|
||||||
|
|
||||||
try {
|
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', {
|
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', {
|
||||||
owner: github.context.repo.owner,
|
owner: github.context.repo.owner,
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ class Deployment {
|
|||||||
core.debug(`Action ID: ${this.actionsId}`)
|
core.debug(`Action ID: ${this.actionsId}`)
|
||||||
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
|
||||||
|
|
||||||
|
core.info("Getting artifact's metadata...")
|
||||||
const artifactData = await getArtifactMetadata({
|
const artifactData = await getArtifactMetadata({
|
||||||
githubToken: this.githubToken,
|
githubToken: this.githubToken,
|
||||||
workflowRunId: this.workflowRun,
|
workflowRunId: this.workflowRun,
|
||||||
|
|||||||
Reference in New Issue
Block a user