From aee1f583a5a561c1e7bfa7ea80ea764c1011d420 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 17 Jun 2026 19:24:25 -0700 Subject: [PATCH] Set GH_REPO at job level so gh CLI works without git context 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. --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0c899d..3ac93da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,6 +35,11 @@ concurrency: jobs: release: runs-on: ubuntu-latest + env: + # gh CLI needs repo context for `pr list/merge/checks/create`. Setting + # GH_REPO at job level means those calls work before checkout (the + # lookup step runs before any checkout). + GH_REPO: ${{ github.repository }} steps: - name: Detect target salt version id: detect