Skip to content

Commit

Permalink
Merge pull request #568 from LifeIsAParadox/fix-workflow
Browse files Browse the repository at this point in the history
Fix workflow
  • Loading branch information
LifeIsAParadox authored Feb 22, 2024
2 parents e572cb2 + a4563e9 commit c0f1343
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/buildrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ jobs:
CHANGELOG=$(sed '/___/Q' CHANGELOG.md)
CHANGELOG=$(echo "$CHANGELOG" | sed 1d)
CHANGELOGtmp="${CHANGELOG//'%'/'%25'}"
CHANGELOGtmp="${CHANGELOGtmp//$'\n'/'%0A'}"
CHANGELOGtmp="${CHANGELOGtmp//$'\r'/'%0D'}"
# changelog for Github release
echo "changelog=$CHANGELOGtmp" >> $GITHUB_OUTPUT
delimiter="$(openssl rand -hex 8)"
{
echo "changelog<<${delimiter}"
echo "$CHANGELOGtmp"
echo "${delimiter}"
} >> $GITHUB_OUTPUT
#echo "Changelog:\n$CHANGELOG" # for debugging
Expand All @@ -61,12 +62,13 @@ jobs:
# Store the highlight_section in the CHANGELOG variable
CHANGELOG=$(echo -n "$highlight_section")
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
# changelog for rest
echo "changelog_highlight=$CHANGELOG" >> $GITHUB_OUTPUT
delimiter="$(openssl rand -hex 8)"
{
echo "changelog_highlight<<${delimiter}"
echo "$CHANGELOG"
echo "${delimiter}"
} >> $GITHUB_OUTPUT
- uses: actions/github-script@v7
id: fname
Expand Down

0 comments on commit c0f1343

Please sign in to comment.