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 fb860a3 commit 305a385
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ jobs:

- name: Read and Escape Changelog
run: |
# Check if the changelog file exists
if [ -f changelog_new.txt ]; then
# 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
# 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'
Expand Down

0 comments on commit 305a385

Please sign in to comment.