Skip to content

Commit

Permalink
use readme.md instead of changelog.md
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Jul 21, 2024
1 parent cfaee2c commit 401528f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
const TEMP_PLACEHOLDER = '**TEMP_PLACEHOLDER_GH_ACTION**';
const changelog = fs
.readFileSync(`${process.env.GITHUB_WORKSPACE}/CHANGELOG.md`, { encoding: 'utf-8' })
.readFileSync(`${process.env.GITHUB_WORKSPACE}/README.md`, { encoding: 'utf-8' })
.replace(WIP_MARKER, TEMP_PLACEHOLDER);
if (!changelog.includes(WIP_MARKER)) {
Expand All @@ -120,7 +120,7 @@ jobs:
const versionDateStr = `${process.env.VERSION} (${dateStr})`;
fs.writeFileSync(
`${process.env.GITHUB_WORKSPACE}/CHANGELOG.md`,
`${process.env.GITHUB_WORKSPACE}/README.md`,
changelog.replace(WIP_MARKER, versionDateStr).replace(TEMP_PLACEHOLDER, WIP_MARKER),
{
encoding: 'utf-8'
Expand Down

0 comments on commit 401528f

Please sign in to comment.