mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 16:16:09 +00:00
Update distributables
This commit is contained in:
59
dist/index.js
vendored
59
dist/index.js
vendored
@@ -35742,6 +35742,7 @@ function wrappy (fn, cb) {
|
|||||||
|
|
||||||
const core = __nccwpck_require__(2186)
|
const core = __nccwpck_require__(2186)
|
||||||
const github = __nccwpck_require__(5438)
|
const github = __nccwpck_require__(5438)
|
||||||
|
const { convertErrorToAnnotationProperties } = __nccwpck_require__(1507)
|
||||||
|
|
||||||
async function enablePagesSite({ githubToken }) {
|
async function enablePagesSite({ githubToken }) {
|
||||||
const octokit = github.getOctokit(githubToken)
|
const octokit = github.getOctokit(githubToken)
|
||||||
@@ -35785,12 +35786,12 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!enablement) {
|
if (!enablement) {
|
||||||
core.error(
|
core.error(
|
||||||
'Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the `enablement` parameter for this action.',
|
`Get Pages site failed. Please verify that the repository has Pages enabled and configured to build using GitHub Actions, or consider exploring the \`enablement\` parameter for this action. Error: ${error.message}`,
|
||||||
error
|
convertErrorToAnnotationProperties(error)
|
||||||
)
|
)
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
core.warning('Get Pages site failed', error)
|
core.warning(`Get Pages site failed. Error: ${error.message}`, convertErrorToAnnotationProperties(error))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pageObject && enablement) {
|
if (!pageObject && enablement) {
|
||||||
@@ -35798,7 +35799,7 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
|||||||
try {
|
try {
|
||||||
pageObject = await enablePagesSite({ githubToken })
|
pageObject = await enablePagesSite({ githubToken })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.error('Create Pages site failed', error)
|
core.error(`Create Pages site failed. Error: ${error.message}`, convertErrorToAnnotationProperties(error))
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35808,7 +35809,7 @@ async function findOrCreatePagesSite({ githubToken, enablement = true }) {
|
|||||||
try {
|
try {
|
||||||
pageObject = await getPagesSite({ githubToken })
|
pageObject = await getPagesSite({ githubToken })
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.error('Get Pages site still failed', error)
|
core.error(`Get Pages site still failed. Error: ${error.message}`, convertErrorToAnnotationProperties(error))
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36295,6 +36296,37 @@ function getContext() {
|
|||||||
module.exports = { getContext }
|
module.exports = { getContext }
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 1507:
|
||||||
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
const ErrorStackParser = __nccwpck_require__(8057)
|
||||||
|
|
||||||
|
// Convert an Error's stack into `@actions/core` toolkit AnnotationProperties:
|
||||||
|
// https://github.com/actions/toolkit/blob/ef77c9d60bdb03700d7758b0d04b88446e72a896/packages/core/src/core.ts#L36-L71
|
||||||
|
function convertErrorToAnnotationProperties(error, title = error.name) {
|
||||||
|
if (!(error instanceof Error)) {
|
||||||
|
throw new TypeError('error must be an instance of Error')
|
||||||
|
}
|
||||||
|
|
||||||
|
const stack = ErrorStackParser.parse(error)
|
||||||
|
const firstFrame = stack && stack.length > 0 ? stack[0] : null
|
||||||
|
if (!firstFrame) {
|
||||||
|
throw new Error('Error stack is empty or unparseable')
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
title,
|
||||||
|
file: firstFrame.fileName,
|
||||||
|
startLine: firstFrame.lineNumber,
|
||||||
|
startColumn: firstFrame.columnNumber
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = { convertErrorToAnnotationProperties }
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 7527:
|
/***/ 7527:
|
||||||
@@ -36335,6 +36367,7 @@ module.exports = function removeTrailingSlash(str) {
|
|||||||
const core = __nccwpck_require__(2186)
|
const core = __nccwpck_require__(2186)
|
||||||
const { ConfigParser } = __nccwpck_require__(8395)
|
const { ConfigParser } = __nccwpck_require__(8395)
|
||||||
const removeTrailingSlash = __nccwpck_require__(9255)
|
const removeTrailingSlash = __nccwpck_require__(9255)
|
||||||
|
const { convertErrorToAnnotationProperties } = __nccwpck_require__(1507)
|
||||||
|
|
||||||
const SUPPORTED_FILE_EXTENSIONS = ['.js', '.cjs', '.mjs']
|
const SUPPORTED_FILE_EXTENSIONS = ['.js', '.cjs', '.mjs']
|
||||||
|
|
||||||
@@ -36422,13 +36455,13 @@ function setPagesConfig({ staticSiteGenerator, generatorConfigFile, siteUrl }) {
|
|||||||
core.warning(
|
core.warning(
|
||||||
`Unsupported configuration file extension. Currently supported extensions: ${SUPPORTED_FILE_EXTENSIONS.map(
|
`Unsupported configuration file extension. Currently supported extensions: ${SUPPORTED_FILE_EXTENSIONS.map(
|
||||||
ext => JSON.stringify(ext)
|
ext => JSON.stringify(ext)
|
||||||
).join(', ')}`,
|
).join(', ')}. Error: ${error.message}`,
|
||||||
error
|
convertErrorToAnnotationProperties(error)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
core.warning(
|
core.warning(
|
||||||
`We were unable to determine how to inject the site metadata into your config. Generated URLs may be incorrect. The base URL for this site should be ${siteUrl}. Please ensure your framework is configured to generate relative links appropriately.`,
|
`We were unable to determine how to inject the site metadata into your config. Generated URLs may be incorrect. The base URL for this site should be ${siteUrl}. Please ensure your framework is configured to generate relative links appropriately. Error: ${error.message}`,
|
||||||
error
|
convertErrorToAnnotationProperties(error)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36437,6 +36470,14 @@ function setPagesConfig({ staticSiteGenerator, generatorConfigFile, siteUrl }) {
|
|||||||
module.exports = { getConfigParserSettings, setPagesConfig }
|
module.exports = { getConfigParserSettings, setPagesConfig }
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8057:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
module.exports = eval("require")("error-stack-parser");
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 9491:
|
/***/ 9491:
|
||||||
|
|||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
10
dist/licenses.txt
vendored
10
dist/licenses.txt
vendored
@@ -241,6 +241,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
@vercel/ncc
|
||||||
|
MIT
|
||||||
|
Copyright 2018 ZEIT, Inc.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
acorn
|
acorn
|
||||||
MIT
|
MIT
|
||||||
MIT License
|
MIT License
|
||||||
|
|||||||
Reference in New Issue
Block a user