diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 4f70a59..8c15539 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -27,7 +27,7 @@ jobs:
       - name: checkout local templates
         uses: actions/checkout@v4
         with:
-          ref: ${{ github.head_ref }}
+          ref: ${{ github.ref }}
           fetch-depth: 0
 
       - id: grabchanged