From 6e6c1d3278cb84d057989ad2f5ed54f64a14128d Mon Sep 17 00:00:00 2001 From: devfive Date: Sun, 20 Sep 2026 01:48:09 +0900 Subject: [PATCH] Give changepacks the base branch as a local ref --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b56fce61..23efa62c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -327,6 +327,12 @@ jobs: # actions/checkout v7 은 pull_request_target 에서 fork PR 코드 체크아웃을 # 기본 차단한다. 이 opt-in 이 없으면 fork PR 의 모든 job 이 checkout 에서 실패한다. allow-unsafe-pr-checkout: true + # changepacks 는 base branch 를 refs/heads/ 에서 찾는데, checkout 은 SHA 를 + # 주면 detached HEAD 로 두고 refs/remotes/origin/* 만 만든다. 그 로컬 ref 를 세운다. + - name: Materialize the base branch as a local ref + env: + BASE: ${{ github.event.pull_request.base.ref || github.ref_name }} + run: git branch --force "$BASE" "refs/remotes/origin/$BASE" - uses: changepacks/action@main id: changepacks with: