Skip to content

Commit 4f89af2

Browse files
committed
handle multiline setup
1 parent 1107161 commit 4f89af2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/create-binaries.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ jobs:
1515
uses: actions/checkout@v2
1616
- name: Generate Change Log
1717
id: generate_log
18-
run: echo "::set-output name=changelog::$(go run main.go .)"
18+
run: |
19+
export CHANGELOG="$(go run main.go .)"
20+
CHANGELOG="${CHANGELOG//'%'/'%25'}"
21+
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
22+
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
23+
echo "::set-output name=changelog::$(echo "$CHANGELOG")"
1924
- name: Generate build files
2025
uses: thatisuday/go-cross-build@v1
2126
with:

0 commit comments

Comments
 (0)