ci: Use github script to update release
See https://github.com/softprops/action-gh-release/issues/163
This commit is contained in:
parent
60bb247f0d
commit
c10cda7d4a
|
|
@ -165,13 +165,22 @@ jobs:
|
|||
contents: write # To change release
|
||||
steps:
|
||||
- name: Publish final release
|
||||
uses: softprops/action-gh-release@v1
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
tag_name: v${{ needs.prepare.outputs.version }}
|
||||
draft: false
|
||||
# FIXME automatically cut relevant changes from changelog and add them here?
|
||||
body: |
|
||||
Check the [changelog](https://github.com/qutebrowser/qutebrowser/blob/master/doc/changelog.asciidoc) for changes in this release.
|
||||
script: |
|
||||
const tag = "v${{ needs.prepare.outputs.version }}";
|
||||
const release = await github.rest.repos.getReleaseByTag({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag: tag,
|
||||
})
|
||||
await github.rest.repos.updateRelease({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
release_id: release.data.id,
|
||||
draft: false,
|
||||
body: "Check the [changelog](https://github.com/qutebrowser/qutebrowser/blob/master/doc/changelog.asciidoc) for changes in this release."
|
||||
})
|
||||
irc:
|
||||
timeout-minutes: 2
|
||||
continue-on-error: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue