Skip to content

Commit b35b295

Browse files
authored
.github/workflows/release.yml - Fix YAML string format (#89)
The here-document failed because the of the string format. I changed them all to use `|` for consistency.
1 parent 11a55b9 commit b35b295

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
fetch-depth: 0 # Need full history.
2828

2929
- name: release notes
30-
run: >-
31-
go run github.com/hashicorp/go-changelog/cmd/changelog-build@ba40b3a
32-
-changelog-template .github/release/changelog.gotmpl
33-
-note-template .github/release/release-note.gotmpl
34-
-entries-dir ./.changelog
35-
-last-release "${{ inputs.last_release }}"
36-
-this-release HEAD | tee /tmp/release-notes.txt
30+
run: |
31+
go run github.com/hashicorp/go-changelog/cmd/changelog-build@ba40b3a \
32+
-changelog-template .github/release/changelog.gotmpl \
33+
-note-template .github/release/release-note.gotmpl \
34+
-entries-dir ./.changelog \
35+
-last-release "${{ inputs.last_release }}" \
36+
-this-release HEAD | tee /tmp/release-notes.txt
3737
3838
cat << EOF >> /tmp/release-notes.txt
3939
DOWNLOAD:
@@ -44,8 +44,8 @@ jobs:
4444
- name: draft GH release
4545
env:
4646
GH_TOKEN: ${{ github.token }}
47-
run: >-
48-
gh release create "${{ inputs.version }}"
49-
--draft
50-
--notes-file /tmp/release-notes.txt
47+
run: |
48+
gh release create "${{ inputs.version }}" \
49+
--draft \
50+
--notes-file /tmp/release-notes.txt \
5151
--title "${{ inputs.version }}"

0 commit comments

Comments
 (0)