Skip to content

Commit

Permalink
Merge pull request #54 from zeta-chain/add-release-flow
Browse files Browse the repository at this point in the history
updated
  • Loading branch information
gzukel authored Nov 7, 2023
2 parents 00b62bd + 5a7ce63 commit 10f0531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ jobs:

- name: Echo Release Notes from PR Message.
if: github.event_name == 'pull_request'
id: release_notes
run: |
GITHUB_RELEASE_TEXT=$(curl --location --request GET ${{ github.event.pull_request.url }} --header 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' | jq .body)
echo "GITHUB_RELEASE_TEXT=${GITHUB_RELEASE_TEXT}" >> ${GITHUB_ENV}
echo -e ${GITHUB_RELEASE_TEXT} > Release.txt
echo "::set-output name=release_notes::${GITHUB_RELEASE_TEXT}"
- name: Set Version from the PR title.
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.PAT_GITHUB_SERVICE_ACCT }}
body: $(cat Release.txt)
body: ${{ steps.release_notes.outputs.release_notes }}
tag_name: ${{ env.GITHUB_TAG_MAJOR_VERSION }}

- name: Create GitHub Release Hot Fix
Expand Down

0 comments on commit 10f0531

Please sign in to comment.