Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/actions/draft-changelog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ inputs:
token:
description: "GitHub access token"
required: true
target:
description: "The owner/repo GitHub target"
required: true
version_spec:
description: "New Version Specifier"
default: "next"
required: false
post_version_spec:
description: "Post Version Specifier"
required: false
target:
description: "The owner/repo GitHub target"
required: true
branch:
description: "The branch to target"
required: false
post_version_spec:
description: "Post Version Specifier"
required: false
dry_run:
description: "If set, do not make a PR"
default: "false"
Expand All @@ -33,7 +33,7 @@ outputs:
value: ${{ steps.draft-changelog.outputs.pr_url }}
release_url:
description: "The html URL of the draft GitHub release"
value: ${{ steps.draft-release.outputs.release_url }}
value: ${{ steps.draft-changelog.outputs.release_url }}
runs:
using: "composite"
steps:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/draft-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ name: "Step 1: Draft Changelog"
on:
workflow_dispatch:
inputs:
version_spec:
description: "New Version Specifier"
required: true
post_version_spec:
description: "Post Version Specifier"
required: false
target:
description: "The owner/repo GitHub target"
required: true
version_spec:
description: "New Version Specifier"
default: "next"
required: false
branch:
description: "The branch to target"
required: false
post_version_spec:
description: "Post Version Specifier"
required: false
since:
description: "Use PRs with activity since this date or git reference"
required: false
Expand Down
3 changes: 2 additions & 1 deletion jupyter_releaser/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ def draft_release(
gh.upload_file(release, fpath)

# Set the body of the release with the changelog contents.
gh.repos.update_release(
# Get the new release since the draft release might change urls.
release = gh.repos.update_release(
release.id,
release.tag_name,
release.target_commitish,
Expand Down