Skip to content

Commit

Permalink
release v3.3.1 generated by @lando/prepare-release-action
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfm-47 committed May 8, 2024
1 parent 609e9d6 commit 79fd82a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 23 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})

## v3.3.1 - [May 8, 2024](https://github.com/lando/prepare-release-action/releases/tag/v3.3.1)

* Fixed issue with `update-files-header` newline spacing
* Fixed issue with this repos GHA release dates

Expand Down
36 changes: 16 additions & 20 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33254,7 +33254,7 @@ module.exports = () => ({
syncToken: core.getInput('sync-token') || process.env.GITHUB_TOKEN,
syncUsername: core.getInput('sync-username') || 'github-actions',
tokens: core.getMultilineInput('update-files-meta') ?? [],
updateHeader: core.getInput('update-files-header') ?? false,
updateHeader: core.getMultilineInput('update-files-header') ?? [],
updateFiles: core.getMultilineInput('update-files') ?? [],
versionMatch: core.getInput('version-match') || 'v[0-9].*',
});
Expand Down Expand Up @@ -35247,6 +35247,7 @@ const getStdOut = __nccwpck_require__(1911);
const github = __nccwpck_require__(5438);
const isLandoPlugin = __nccwpck_require__(5776);
const jsonfile = __nccwpck_require__(6160);
const os = __nccwpck_require__(2037);
const path = __nccwpck_require__(1017);
const parseReleaseDate = __nccwpck_require__(3508);
const parseTokens = __nccwpck_require__(9233);
Expand Down Expand Up @@ -35301,8 +35302,8 @@ const main = async () => {
]);
}
// if lando plugin and updateHeader is not set then set it here
if (inputs.landoPlugin && inputs.updateHeader !== false && typeof inputs.updateHeader === 'string') {
inputs.updateHeader = '## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})\n\n';
if (inputs.landoPlugin && inputs.updateHeader.length === 0) {
inputs.updateHeader = ['## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})'];
}

// normalize updatefile paths
Expand Down Expand Up @@ -35363,7 +35364,7 @@ const main = async () => {
core.debug(jsonfile.readFileSync(inputs.pjson));
}

// loop through and update-files with tokens
// loop through and update-files with tokens and headers
for (const file of inputs.updateFiles.filter(file => fs.existsSync(file))) {
// get content
let content = fs.readFileSync(file, {encoding: 'utf-8'});
Expand All @@ -35376,25 +35377,20 @@ const main = async () => {
}
core.endGroup();

// debug and update the file with new contents
fs.writeFileSync(file, content);
core.debug(`updated ${file} with tokens:`);
core.debug(`${fs.readFileSync(file, {encoding: 'utf-8'})}`);
}

// loop through and update-files with header
if (inputs.updateHeader !== false && typeof inputs.updateHeader === 'string') {
for (const file of inputs.updateFiles.filter(file => fs.existsSync(file))) {
// update its header
if (inputs.updateHeader.length > 0) {
core.startGroup(`Updating ${file} with update-files-header content`);
core.info(`update-header: ${inputs.updateHeader}`);
core.info(`update-header: ${inputs.updateHeader.join(os.EOL)}`);
core.endGroup();

const content = fs.readFileSync(file, {encoding: 'utf-8'});
fs.writeFileSync(file, `${inputs.updateHeader}${content}`);

core.debug(`updated ${file} with update-header:`);
core.debug(`${fs.readFileSync(file, {encoding: 'utf-8'})}`);
content = `${inputs.updateHeader.join(os.EOL)}${os.EOL}${os.EOL}${content}`;
}

// debug and update the file with new contents
fs.writeFileSync(file, content);
core.debug(`updated ${file}:`);
core.debug(`---`);
core.debug(`${fs.readFileSync(file, {encoding: 'utf-8'})}`);
core.debug(`---`);
}

// if using landoPlugin ez-mode then validate lando plugin
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.3.0",
"version": "3.3.1",
"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 79fd82a

Please sign in to comment.