From ec895fb5d9daa20b18e4d2c58a6b102712199751 Mon Sep 17 00:00:00 2001 From: Nicholas Ruffing Date: Tue, 21 Nov 2023 21:55:27 -0500 Subject: [PATCH] create release test workflow --- .github/workflows/ci_cd.yml | 4 ++-- .github/workflows/create_release_test.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 6945b61..7c5baf7 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -89,7 +89,7 @@ jobs: - name: Escape version run: echo "ESCAPED_VERSION=$(echo "${{ env.TEST_VERSION }}" | sed 's/[^^]/[&]/g; s/\^/\\^/g')" >> $GITHUB_ENV - name: Parse release notes - run: echo "RELEASE_NOTES=$(grep -Po '(?<=### v${{ env.ESCAPED_VERSION }}\n)\X+(?=\n\n)' ../README.md)" >> $GITHUB_ENV + run: grep -Pzo '(?<=### v${{ env.ESCAPED_VERSION }}\n)\X+(?=\n\n)' ../README.md) >> release_notes.txt - name: Create release uses: actions/create-release@latest env: @@ -97,7 +97,7 @@ jobs: with: tag_name: v${{ env.VERSION }} release_name: v${{ env.VERSION }} - body: ${{ env.RELEASE_NOTES }} + body_path: release_notes.txt example_api_deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/create_release_test.yml b/.github/workflows/create_release_test.yml index 4a83d27..a380f0d 100644 --- a/.github/workflows/create_release_test.yml +++ b/.github/workflows/create_release_test.yml @@ -14,7 +14,7 @@ jobs: - name: Escape version run: echo "ESCAPED_VERSION=$(echo "${{ vars.TEST_VERSION }}" | sed 's/[^^]/[&]/g; s/\^/\\^/g')" >> $GITHUB_ENV - name: Parse release notes - run: echo "RELEASE_NOTES=$(grep -Pzo '(?<=### v${{ env.ESCAPED_VERSION }}\n)\X+(?=\n\n)' ../README.md)" >> $GITHUB_ENV + run: grep -Pzo '(?<=### v${{ env.ESCAPED_VERSION }}\n)\X+(?=\n\n)' ../README.md >> release_notes.txt - name: Create release uses: actions/create-release@latest env: @@ -22,4 +22,4 @@ jobs: with: tag_name: v${{ vars.TEST_VERSION }} release_name: v${{ vars.TEST_VERSION }} - body: ${{ env.RELEASE_NOTES }} + body_path: release_notes.txt