-
Notifications
You must be signed in to change notification settings - Fork 23
fix[ci]: update create-release action with gh cli #278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -71,12 +71,17 @@ jobs: | |||||||||||||||
| "${GITHUB_WORKSPACE}/.github/draft_release_notes.sh" | ||||||||||||||||
| - name: Draft release | ||||||||||||||||
| id: draft_release | ||||||||||||||||
| uses: actions/create-release@v1 | ||||||||||||||||
| with: | ||||||||||||||||
| release_name: ${{ inputs.release }} | ||||||||||||||||
| tag_name: ${{ inputs.release }} | ||||||||||||||||
| draft: true | ||||||||||||||||
| prerelease: true | ||||||||||||||||
| body_path: Changes.md | ||||||||||||||||
| env: | ||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||
| run: | | ||||||||||||||||
| if [ ! -f Changes.md ]; then | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like this may not be needed. According to the GitHub Actions docs, steps are executed in order and are dependent on each other. Additionally, continue-on-error is set to Therefore, it’s safe to assume that if we reach this step, the previous steps have succeeded and the |
||||||||||||||||
| echo "ERROR: Changes.md was not generated!" | ||||||||||||||||
| exit 1 | ||||||||||||||||
| fi | ||||||||||||||||
|
|
||||||||||||||||
| gh release create "${{ inputs.release }}" \ | ||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this command is missing the |
||||||||||||||||
| --repo "${{ github.repository }}" \ | ||||||||||||||||
| --title "${{ inputs.release }}" \ | ||||||||||||||||
| --notes-file Changes.md \ | ||||||||||||||||
| --draft \ | ||||||||||||||||
| --prerelease | ||||||||||||||||
|
Comment on lines
+85
to
+87
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Please add newline at end of file. |
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I’d suggest renaming this for consistency.