From 471d9218cd481a499c931f1bfb0cfbeaf3d7e460 Mon Sep 17 00:00:00 2001 From: Daniel Levi-Minzi <51272568+dleviminzi@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:48:41 -0400 Subject: [PATCH] Remove condition and add temporary log (#592) Removing condition. This might result in duplicate PRs when multiple releases go out at once, but I think closing duplicates is probably easier than remembering to add the tag line. I also added a temporary log of the release. I'm doing this so that I can test against a real release payload when making changes in the future. --- .github/workflows/release-changelog.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-changelog.yml b/.github/workflows/release-changelog.yml index e2488f6c0..2932137f2 100644 --- a/.github/workflows/release-changelog.yml +++ b/.github/workflows/release-changelog.yml @@ -38,15 +38,10 @@ jobs: const release = context.payload.release; - const lines = release.body.split('\n'); + // TODO: remove this when after first real release + console.log("release", release); - // Stop the workflow if the release notes do not end with "publish changelog" - const lastLine = lines[lines.length - 1].trim().toLowerCase(); - if (lastLine !== 'publish changelog') { - core.setOutput('should_continue', 'false'); - core.setOutput('error_message', 'Release notes do not end with "publish changelog". Stopping workflow.'); - return; - } + const lines = release.body.split('\n'); const feats = []; const fixes = [];