Skip to content

Fix release.yml: set GH_REPO so lookup step works before checkout#81

Open
dwoz wants to merge 1 commit into
mainfrom
fix/release-workflow-repo-context
Open

Fix release.yml: set GH_REPO so lookup step works before checkout#81
dwoz wants to merge 1 commit into
mainfrom
fix/release-workflow-repo-context

Conversation

@dwoz

@dwoz dwoz commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Fixes the failure observed in the first scheduled run after merge:

failed to run git: fatal: not a git repository (or any of the parent directories): .git
##[error]Process completed with exit code 1.

The Look up existing PR for this version step runs before any checkout, so gh pr list --head <branch> had no git context and could not infer the repo. Setting GH_REPO: ${{ github.repository }} at job level resolves the repo from env for all gh pr/gh run calls, regardless of whether .git is on disk yet.

One-line change, no behavioural difference once running.

The lookup step runs before checkout, so gh pr list with no repo
context fails with 'fatal: not a git repository'. Setting GH_REPO at
job level makes all gh pr/run calls resolve the repo from env.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant