Skip to content

Commit

Permalink
release v3.2.0 generated by @lando/prepare-release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfm-47 committed Mar 26, 2024
1 parent 2bd0567 commit 13f9839
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 74 deletions.
157 changes: 86 additions & 71 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,74 +1,6 @@
require('./sourcemap-register.js');/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ 7428:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

"use strict";


const core = __nccwpck_require__(2186);

module.exports = () => ({
// required inputs
version: String(core.getInput('version')),

// optional inputs
bundleDependencies: process.env.GITHUB_ACTIONS ? core.getBooleanInput('bundle-dependencies') : false,
commands: core.getMultilineInput('commands'),
landoPlugin: process.env.GITHUB_ACTIONS ? core.getBooleanInput('lando-plugin') : false,
meta: core.getMultilineInput('meta'),
root: core.getInput('root') || process.cwd(),
sync: process.env.GITHUB_ACTIONS ? core.getBooleanInput('sync') : false,
syncBranch: core.getInput('sync-branch') || 'main',
syncEmail: core.getInput('sync-email') || 'github-actions@github.com',
syncMessage: core.getInput('sync-message') || 'release v%s generated by @lando/prepare-release-action',
syncTags: core.getMultilineInput('sync-tags'),
syncUsername: core.getInput('sync-username') || 'github-actions',
versionMatch: core.getInput('version-match') || 'v[0-9].*',
});


/***/ }),

/***/ 7327:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

"use strict";


const {execSync} = __nccwpck_require__(2081);

module.exports = command => {
// validate inputs
if (!command) throw new Error('Must specify a command!');
// get output
const data = execSync(command, {maxBuffer: 1024 * 1024 * 10, encoding: 'utf-8'});
// trim if we can then return
return typeof data === 'string' ? data.trim() : data;
};


/***/ }),

/***/ 7539:
/***/ ((module) => {

"use strict";


module.exports = (manifest = {}) => {
// if the manifest has a lando key then true
if (manifest.hasOwnProperty('lando')) return true;
// has the "lando-plugin" keyword
if (manifest.keywords && manifest.keywords.includes('lando-plugin')) return true;
// otherwise nope
return false;
};


/***/ }),

/***/ 7351:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {

Expand Down Expand Up @@ -17966,6 +17898,9 @@ function httpRedirectFetch (fetchParams, response) {
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
request.headersList.delete('authorization')

// https://fetch.spec.whatwg.org/#authentication-entries
request.headersList.delete('proxy-authorization', true)

// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
request.headersList.delete('cookie')
request.headersList.delete('host')
Expand Down Expand Up @@ -28804,6 +28739,75 @@ function version(uuid) {
var _default = version;
exports["default"] = _default;

/***/ }),

/***/ 2567:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

"use strict";


const core = __nccwpck_require__(2186);

module.exports = () => ({
// required inputs
version: String(core.getInput('version')),

// optional inputs
bundleDependencies: process.env.GITHUB_ACTIONS ? core.getBooleanInput('bundle-dependencies') : false,
commands: core.getMultilineInput('commands'),
landoPlugin: process.env.GITHUB_ACTIONS ? core.getBooleanInput('lando-plugin') : false,
meta: core.getMultilineInput('meta'),
root: core.getInput('root') || process.cwd(),
sync: process.env.GITHUB_ACTIONS ? core.getBooleanInput('sync') : false,
syncBranch: core.getInput('sync-branch') || 'main',
syncEmail: core.getInput('sync-email') || 'github-actions@github.com',
syncMessage: core.getInput('sync-message') || 'release v%s generated by @lando/prepare-release-action',
syncTags: core.getMultilineInput('sync-tags'),
syncToken: core.getInput('sync-token') || process.env.GITHUB_TOKEN,
syncUsername: core.getInput('sync-username') || 'github-actions',
versionMatch: core.getInput('version-match') || 'v[0-9].*',
});


/***/ }),

/***/ 1911:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {

"use strict";


const {execSync} = __nccwpck_require__(2081);

module.exports = command => {
// validate inputs
if (!command) throw new Error('Must specify a command!');
// get output
const data = execSync(command, {maxBuffer: 1024 * 1024 * 10, encoding: 'utf-8'});
// trim if we can then return
return typeof data === 'string' ? data.trim() : data;
};


/***/ }),

/***/ 5776:
/***/ ((module) => {

"use strict";


module.exports = (manifest = {}) => {
// if the manifest has a lando key then true
if (manifest.hasOwnProperty('lando')) return true;
// has the "lando-plugin" keyword
if (manifest.keywords && manifest.keywords.includes('lando-plugin')) return true;
// otherwise nope
return false;
};


/***/ }),

/***/ 9491:
Expand Down Expand Up @@ -30720,9 +30724,9 @@ var __webpack_exports__ = {};
const core = __nccwpck_require__(2186);
const exec = __nccwpck_require__(1514);
const fs = __nccwpck_require__(7147);
const getInputs = __nccwpck_require__(7428);
const getStdOut = __nccwpck_require__(7327);
const isLandoPlugin = __nccwpck_require__(7539);
const getInputs = __nccwpck_require__(2567);
const getStdOut = __nccwpck_require__(1911);
const isLandoPlugin = __nccwpck_require__(5776);
const jsonfile = __nccwpck_require__(6160);
const path = __nccwpck_require__(1017);
const semverClean = __nccwpck_require__(8848);
Expand All @@ -30732,6 +30736,9 @@ const set = __nccwpck_require__(1552);
const main = async () => {
// start by getting the inputs
const inputs = getInputs();
// switch cwd to inputs.root
process.chdir(inputs.root);

// add more
inputs.pjson = path.join(inputs.root, 'package.json');

Expand All @@ -30742,6 +30749,7 @@ const main = async () => {
// if a shallow repo then unshallow and fetch all
if (isShallow === 'true') {
core.startGroup('Configuring repo');
core.info(`working-dir: ${process.cwd()}`);
await exec.exec('git', ['fetch', '--unshallow']);
await exec.exec('git', ['fetch', '--all']);
core.endGroup();
Expand Down Expand Up @@ -30836,6 +30844,13 @@ const main = async () => {
await exec.exec('git', ['diff', 'HEAD~1']);
core.endGroup();

// construct auth string
const basicCredential = Buffer.from(`x-access-token:${inputs.syncToken}`, 'utf8').toString('base64');
const authString = `AUTHORIZATION: basic ${basicCredential}`;
core.setSecret(basicCredential);

// push updates
await exec.exec('git', ['config', '--local', 'http.https://github.com/.extraheader', authString]);
await exec.exec('git', ['push', 'origin', inputs.syncBranch]);
for (const tag of tags) await exec.exec('git', ['push', '--force', 'origin', tag]);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lando/prepare-release-action",
"version": "3.1.0",
"version": "3.2.0",
"description": "An action that can automate release steps and sync them back to the releasing repo.",
"contributors": [
"Alec Reynolds @reynoldsalec",
Expand Down

0 comments on commit 13f9839

Please sign in to comment.