Target auto-release at the current repo #2

Merged
JMR-dev merged 1 commits from fix-release-workflow into master 2026-06-24 15:18:56 +00:00
JMR-dev commented 2026-06-24 15:18:47 +00:00 (Migrated from github.com)

Summary

Fixes the release workflow failure on this fork. Merging PR #1 to master triggered the packaging workflow (run 28108706125), which failed at the Delete older auto-releases step with:

🔴 no GITHUB_TOKEN found. pass `GITHUB_TOKEN` as env

Root cause

release.yml was upstream infrastructure: it published alpha releases to noDRM/DeDRM_tools_autorelease via secrets.AUTORELEASE_KEY. That secret only exists on the upstream repo, so on a fork it resolves to empty (hence the missing token) — and even with a token, a fork can't publish into noDRM's release repo.

Fix

Retarget the auto-release at this repo's own Releases using the built-in GITHUB_TOKEN:

  • repo / repository → ${{ github.repository }}
  • token → ${{ secrets.GITHUB_TOKEN }} (no PAT required)
  • added job-level permissions: contents: write so the token can create/delete releases
  • updated the commit link in the release body to ${{ github.repository }}

Once merged, the next push to master will publish an alpha release into this fork's own Releases.

🤖 Generated with Claude Code

## Summary Fixes the release workflow failure on this fork. Merging PR #1 to `master` triggered the packaging workflow ([run 28108706125](https://github.com/JMR-dev/DeDRM_tools/actions/runs/28108706125/job/83229905760)), which failed at the **Delete older auto-releases** step with: ``` 🔴 no GITHUB_TOKEN found. pass `GITHUB_TOKEN` as env ``` ### Root cause `release.yml` was upstream infrastructure: it published alpha releases to `noDRM/DeDRM_tools_autorelease` via `secrets.AUTORELEASE_KEY`. That secret only exists on the upstream repo, so on a fork it resolves to empty (hence the missing token) — and even with a token, a fork can't publish into noDRM's release repo. ### Fix Retarget the auto-release at this repo's own Releases using the built-in `GITHUB_TOKEN`: - `repo` / `repository` → `${{ github.repository }}` - token → `${{ secrets.GITHUB_TOKEN }}` (no PAT required) - added job-level `permissions: contents: write` so the token can create/delete releases - updated the commit link in the release body to `${{ github.repository }}` Once merged, the next push to `master` will publish an alpha release into this fork's own Releases. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.