Skip to content

Commit

Permalink
Clean up workflows (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Sep 13, 2022
1 parent a30d0d2 commit e8dd7b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/actions/draft-changelog/action.yml
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
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
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

0 comments on commit e8dd7b6

Please sign in to comment.