From 401528f923495d87d33384148b93bea3666a82ed Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Sun, 21 Jul 2024 12:30:25 +0200 Subject: [PATCH] use readme.md instead of changelog.md --- .github/workflows/create-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 1e05c98..f9df5df 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -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)) { @@ -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'