Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workflow #568

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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