Skip to content

Commit

Permalink
Merge pull request #150 from HoI4-LOTRMod-Team/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Helliaca authored Jun 21, 2024
2 parents 2643d99 + 2f3778a commit b17047a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ jobs:
- name: Read patch notes
id: patch-notes
run: |
# Read the contents of patch_notes.txt and base64 encode it
patch_notes=$(cat patch_notes.txt | base64)
# Read the contents of patch_notes.txt
patch_notes=$(cat patch_notes.txt)
# Escape newline characters to be compatible with GitHub Actions output
patch_notes="${patch_notes//'%'/'%25'}"
patch_notes="${patch_notes//$'\n'/'%0A'}"
patch_notes="${patch_notes//$'\r'/'%0D'}"
echo "patch_notes=$patch_notes" >> $GITHUB_OUTPUT
- name: Create Release
Expand All @@ -45,6 +49,6 @@ jobs:
body: |
Compatible HoI4 Version: v${{ steps.get-version.outputs.compatible_version }}
$(echo '${{ steps.patch-notes.outputs.patch_notes }}' | base64 --decode)
${{ steps.patch-notes.outputs.patch_notes }}
draft: false
prerelease: false

0 comments on commit b17047a

Please sign in to comment.