Skip to content

Commit

Permalink
Merge pull request #107 from zowe-actions/fix/prerelease-default-name
Browse files Browse the repository at this point in the history
Change default prerelease name to be channel
  • Loading branch information
t1m0thyj committed Aug 25, 2023
2 parents 3c5ec88 + d298011 commit f7dd980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/core.js

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

2 changes: 1 addition & 1 deletion packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async function buildVersionInfo(branch: IProtectedBranch, tagPrefix: string): Pr

let prerelease: string | undefined = undefined;
if (branch.prerelease) {
const prereleaseName = (typeof branch.prerelease === "string") ? branch.prerelease : branch.name;
const prereleaseName = (typeof branch.prerelease === "string") ? branch.prerelease : branch.channel;
const timestamp = (new Date()).toISOString().replace(/\D/g, "").slice(0, 12);
prerelease = `${prereleaseName}.${timestamp}`;
}
Expand Down

0 comments on commit f7dd980

Please sign in to comment.