Skip to content

Commit

Permalink
create release test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nruffing committed Nov 22, 2023
1 parent 5408455 commit ec895fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create_release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ 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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ vars.TEST_VERSION }}
release_name: v${{ vars.TEST_VERSION }}
body: ${{ env.RELEASE_NOTES }}
body_path: release_notes.txt

0 comments on commit ec895fb

Please sign in to comment.