mirror of
https://github.com/actions/deploy-pages.git
synced 2026-03-30 18:14:52 +00:00
WIP
This commit is contained in:
15
dist/index.js
generated
vendored
15
dist/index.js
generated
vendored
@@ -9865,15 +9865,16 @@ async function processRuntimeResponse(res, requestOptions) {
|
|||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getArtifactMetadata({githubToken, runId, artifactName}) {
|
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
|
||||||
const octokit = github.getOctokit(githubToken)
|
const octokit = github.getOctokit(githubToken)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts?name={artifactName}', {
|
console.log(`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,
|
owner: github.context.repo.owner,
|
||||||
repo: github.context.repo.repo,
|
repo: github.context.repo.repo,
|
||||||
run_id: runId,
|
run_id: runId
|
||||||
artifactName: artifactName
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return response.data
|
return response.data
|
||||||
@@ -10054,11 +10055,7 @@ const core = __nccwpck_require__(2186)
|
|||||||
|
|
||||||
// All variables we need from the runtime are loaded here
|
// All variables we need from the runtime are loaded here
|
||||||
const getContext = __nccwpck_require__(8454)
|
const getContext = __nccwpck_require__(8454)
|
||||||
const {
|
const { getArtifactMetadata, getPagesDeploymentStatus, cancelPagesDeployment } = __nccwpck_require__(572)
|
||||||
getArtifactMetadata,
|
|
||||||
getPagesDeploymentStatus,
|
|
||||||
cancelPagesDeployment
|
|
||||||
} = __nccwpck_require__(572)
|
|
||||||
|
|
||||||
const temporaryErrorStatus = {
|
const temporaryErrorStatus = {
|
||||||
unknown_status: 'Unable to get deployment status.',
|
unknown_status: 'Unable to get deployment status.',
|
||||||
|
|||||||
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
@@ -54,15 +54,16 @@ async function processRuntimeResponse(res, requestOptions) {
|
|||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getArtifactMetadata({githubToken, runId, artifactName}) {
|
async function getArtifactMetadata({ githubToken, runId, artifactName }) {
|
||||||
const octokit = github.getOctokit(githubToken)
|
const octokit = github.getOctokit(githubToken)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await octokit.request('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts?name={artifactName}', {
|
console.log(`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,
|
owner: github.context.repo.owner,
|
||||||
repo: github.context.repo.repo,
|
repo: github.context.repo.repo,
|
||||||
run_id: runId,
|
run_id: runId
|
||||||
artifactName: artifactName
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return response.data
|
return response.data
|
||||||
|
|||||||
@@ -2,11 +2,7 @@ const core = require('@actions/core')
|
|||||||
|
|
||||||
// All variables we need from the runtime are loaded here
|
// All variables we need from the runtime are loaded here
|
||||||
const getContext = require('./context')
|
const getContext = require('./context')
|
||||||
const {
|
const { getArtifactMetadata, getPagesDeploymentStatus, cancelPagesDeployment } = require('./api-client')
|
||||||
getArtifactMetadata,
|
|
||||||
getPagesDeploymentStatus,
|
|
||||||
cancelPagesDeployment
|
|
||||||
} = require('./api-client')
|
|
||||||
|
|
||||||
const temporaryErrorStatus = {
|
const temporaryErrorStatus = {
|
||||||
unknown_status: 'Unable to get deployment status.',
|
unknown_status: 'Unable to get deployment status.',
|
||||||
|
|||||||
Reference in New Issue
Block a user