mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 15:11:37 +02:00
chore: build dist release-please-action (#373)
This commit is contained in:
committed by
GitHub
parent
fd7f2fff26
commit
526ef9c27a
19
dist/index.js
vendored
19
dist/index.js
vendored
@@ -14,6 +14,7 @@ const MANIFEST_COMMANDS = ['manifest', 'manifest-pr']
|
||||
const RELEASE_LABEL = 'autorelease: pending'
|
||||
const GITHUB_RELEASE_COMMAND = 'github-release'
|
||||
const GITHUB_RELEASE_PR_COMMAND = 'release-pr'
|
||||
const GITHUB_API_URL = 'https://api.github.com'
|
||||
|
||||
function getBooleanInput (input) {
|
||||
const trueValue = ['true', 'True', 'TRUE', 'yes', 'Yes', 'YES', 'y', 'Y', 'on', 'On', 'ON']
|
||||
@@ -29,7 +30,7 @@ function getGitHubInput () {
|
||||
fork: getBooleanInput('fork'),
|
||||
defaultBranch: core.getInput('default-branch') || undefined,
|
||||
repoUrl: process.env.GITHUB_REPOSITORY,
|
||||
apiUrl: 'https://api.github.com',
|
||||
apiUrl: core.getInput('github-api-url') || GITHUB_API_URL,
|
||||
token: core.getInput('token', { required: true })
|
||||
}
|
||||
}
|
||||
@@ -14727,10 +14728,10 @@ module.exports = function (config) {
|
||||
})
|
||||
|
||||
return Q.all([
|
||||
readFile(__nccwpck_require__.ab + "template1.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "header1.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "commit1.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "footer.hbs", 'utf-8')
|
||||
readFile(__nccwpck_require__.ab + "template2.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "header2.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "commit2.hbs", 'utf-8'),
|
||||
readFile(__nccwpck_require__.ab + "footer1.hbs", 'utf-8')
|
||||
])
|
||||
.spread((template, header, commit, footer) => {
|
||||
const writerOpts = getWriterOpts(config)
|
||||
@@ -14949,10 +14950,10 @@ function conventionalChangelogWriterInit (context, options) {
|
||||
includeDetails: false,
|
||||
ignoreReverted: true,
|
||||
doFlush: true,
|
||||
mainTemplate: readFileSync(__nccwpck_require__.ab + "template2.hbs", 'utf-8'),
|
||||
headerPartial: readFileSync(__nccwpck_require__.ab + "header2.hbs", 'utf-8'),
|
||||
commitPartial: readFileSync(__nccwpck_require__.ab + "commit2.hbs", 'utf-8'),
|
||||
footerPartial: readFileSync(__nccwpck_require__.ab + "footer1.hbs", 'utf-8')
|
||||
mainTemplate: readFileSync(__nccwpck_require__.ab + "template1.hbs", 'utf-8'),
|
||||
headerPartial: readFileSync(__nccwpck_require__.ab + "header1.hbs", 'utf-8'),
|
||||
commitPartial: readFileSync(__nccwpck_require__.ab + "commit1.hbs", 'utf-8'),
|
||||
footerPartial: readFileSync(__nccwpck_require__.ab + "footer.hbs", 'utf-8')
|
||||
}, options)
|
||||
|
||||
if ((!_.isFunction(options.transform) && _.isObject(options.transform)) || _.isUndefined(options.transform)) {
|
||||
|
||||
Reference in New Issue
Block a user