Skip to content

Commit

Permalink
Ignore backticks when echoing the changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
metcalfc committed Oct 22, 2021
1 parent a991ef7 commit 44ef091
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ jobs:
head-ref: 'v0.0.2'
base-ref: 'v0.0.1'
- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"
run: |
cat << "EOF"
${{ steps.changelog.outputs.changelog }}
EOF
- name: Generate changelog from release
id: release
uses: metcalfc/changelog-generator@main
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Get the changelog
run: echo "${{ steps.release.outputs.changelog }}"
run: |
cat << "EOF"
${{ steps.changelog.outputs.changelog }}
EOF
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ Then you can use the resulting changelog:
```yaml
- name: Get the changelog
run: echo "${{ steps.changelog.outputs.changelog }}"
run: |
cat << "EOF"
${{ steps.changelog.outputs.changelog }}
EOF
```
## Example use case
Expand Down

0 comments on commit 44ef091

Please sign in to comment.