Skip to content

Commit

Permalink
Release title is redundant in example workflow
Browse files Browse the repository at this point in the history
The title defaults to the tag name when both are identical.
  • Loading branch information
Goooler authored and ffurrer2 committed Sep 26, 2024
1 parent 54aa420 commit ab040ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --notes '${{ steps.extract-release-notes.outputs.release_notes }}'
run: gh release create ${{ github.ref_name }} --notes '${{ steps.extract-release-notes.outputs.release_notes }}'
```
This code will extract the content between the second and third H2 header from the `CHANGELOG.md` file, store this content in the output variable `release_notes` and create a release using the [`gh release create`](https://cli.github.com/manual/gh_release_create) command.
Expand Down

0 comments on commit ab040ce

Please sign in to comment.