From a48b6fdb54329f6416ab6ce18b7a67071cd7faba Mon Sep 17 00:00:00 2001 From: Test Date: Sun, 6 Sep 2026 06:14:23 -0700 Subject: [PATCH] ci: fix checkout ref for PR builds --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 480f6e4..296df09 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: run: | git init git remote add origin https://forgejo.riotpiao.com/rock/poimen-workflows.git - git fetch origin ${{ github.ref_name }} --depth=1 + git fetch origin ${{ github.head_ref || github.ref_name }} --depth=1 git checkout FETCH_HEAD - name: Download dependencies