Skip to content

Commit

Permalink
.github/workflows/release.yml - Fix YAML string format
Browse files Browse the repository at this point in the history
The here-document failed because the of the string format.
I changed them all to use `|` for consistency.
  • Loading branch information
andrewkroh committed Apr 3, 2024
1 parent 11a55b9 commit f9b2bba
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
fetch-depth: 0 # Need full history.

- name: release notes
run: >-
go run github.com/hashicorp/go-changelog/cmd/changelog-build@ba40b3a
-changelog-template .github/release/changelog.gotmpl
-note-template .github/release/release-note.gotmpl
-entries-dir ./.changelog
-last-release "${{ inputs.last_release }}"
-this-release HEAD | tee /tmp/release-notes.txt
run: |
go run github.com/hashicorp/go-changelog/cmd/changelog-build@ba40b3a \
-changelog-template .github/release/changelog.gotmpl \
-note-template .github/release/release-note.gotmpl \
-entries-dir ./.changelog \
-last-release "${{ inputs.last_release }}" \
-this-release HEAD | tee /tmp/release-notes.txt
cat << EOF >> /tmp/release-notes.txt
DOWNLOAD:
Expand All @@ -44,8 +44,8 @@ jobs:
- name: draft GH release
env:
GH_TOKEN: ${{ github.token }}
run: >-
gh release create "${{ inputs.version }}"
--draft
--notes-file /tmp/release-notes.txt
run: |
gh release create "${{ inputs.version }}" \
--draft \
--notes-file /tmp/release-notes.txt \
--title "${{ inputs.version }}"

0 comments on commit f9b2bba

Please sign in to comment.