Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard authored Dec 10, 2023
1 parent 305a385 commit b82d4f8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ jobs:

############# Release with workflow_dispatch #############

- name: Read and Escape Changelog
run: |
# Read the file and escape necessary characters
ESCAPED_CHANGELOG=$(cat changelog_new.txt | sed 's/"/\\"/g' | sed "s/'/\\'/g" | awk '{printf "%s\\n", $0}')
echo "ESCAPED_CHANGELOG=$ESCAPED_CHANGELOG" >> $GITHUB_ENV
- name: Zip Linux Build for Release
if: github.event_name == 'workflow_dispatch'
run: |
Expand All @@ -107,7 +101,8 @@ jobs:
with:
tag_name: ${{ steps.version_info.outputs.FULL_VERSION }}
release_name: ${{ steps.version_info.outputs.FULL_VERSION }}
body: ${{ env.ESCAPED_CHANGELOG }}
body: |
$(cat changelog_new.txt)
draft: false
prerelease: false

Expand Down

0 comments on commit b82d4f8

Please sign in to comment.