From 3e5dd2ec42a3383df0033835289f0f0e2e5597d8 Mon Sep 17 00:00:00 2001 From: mullak99 Date: Sun, 29 Oct 2023 19:07:23 +0000 Subject: [PATCH] Update create-pack.yml --- .github/workflows/create-pack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-pack.yml b/.github/workflows/create-pack.yml index 55dbabe9..649a007b 100644 --- a/.github/workflows/create-pack.yml +++ b/.github/workflows/create-pack.yml @@ -45,7 +45,7 @@ jobs: echo "::set-output name=zipname::$filename" - name: Extract Changelog Entry run: | - changelog=$(awk '/## \[/{flag=(++i==1)}flag;/## \[/{if(i>=2) exit}' ChangeLog.md) + changelog=$(awk '/## \[/{i++}i==1{if (!f) f=1; else print}i==2{exit}' ChangeLog.md) echo "CHANGELOG<> $GITHUB_ENV echo "$changelog" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV