Skip to content

🐛 fix(publish-github-release): create the release on the existing tag - #68

Merged
gaborbernat merged 1 commit into
mainfrom
fix/release-existing-tag
Nov 12, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
fix/release-existing-tag

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

A release published by publish-github-release could fail with Resource not accessible by integration when a pull request that changed a workflow file merged while the release was building. blinkbitcoin/shared-workflows#29 traces the 403 to GitHub comparing a new tag's workflow files with the default branch tip, which the job's token cannot pass. 🐛 Once this merges, the draft is created on the existing tag, so such a merge no longer blocks a release.

The Action sent a target commit when it created the draft. The create-release API leaves that target unused when the Git tag already exists, so the request now names only the tag. Without a target, a missing tag would land on the default branch tip when the draft is published. The Action therefore reads the tag's commit first and stops when the tag is missing or names another commit.

Callers now need to push the tag before they publish the release. A missing tag, or one that names another commit than commit, fails with tag <tag> must exist and point at <commit>. The commit input stays required, and the troubleshooting page lists the new error.

GitHub checks a release target's workflow files against the default
branch tip and refuses GITHUB_TOKEN, which lacks the workflows
permission, once a later merge changed a workflow. simplint 0.11.0 hit
this when a CI change merged while its release built. The tag already
exists, so drop the target and stop if the tag is missing or points at
another commit.
@gaborbernat gaborbernat added the bug Something isn't working label Nov 12, 2026
@gaborbernat
gaborbernat merged commit 112e5a7 into main Nov 12, 2026
13 checks passed
@gaborbernat
gaborbernat deleted the fix/release-existing-tag branch November 12, 2026 21:49
This was referenced Nov 12, 2026
gaborbernat added a commit to quotaline/quotaline that referenced this pull request Nov 16, 2026
The shared workflows move to [github-workflows
6.8.3](https://github.com/tox-dev/github-workflows/releases/tag/6.8.3).
🔧 The release-tools refresh deletes an expired cutoff exception that its
own refresh makes redundant, instead of failing on it
([#69](tox-dev/github-workflows#69)), and its
pull request takes the default title `🔧 build(deps): refresh project
lock` ([#72](tox-dev/github-workflows#72)), so
this repository's title override is removed and the title gains the 🔧
prefix.

Releases no longer fail with `Resource not accessible by integration`
when a pull request that changes a workflow merges while the release
builds, since the GitHub release is now drafted on the existing tag
([#68](tox-dev/github-workflows#68),
[6.8.0...6.8.3](tox-dev/github-workflows@6.8.0...6.8.3)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant