瀏覽代碼

fix: cicd, checkout sha

孙高猛 1 年之前
父節點
當前提交
3fa55f9022
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/deploy_preview.yml

+ 2 - 0
.github/workflows/deploy_preview.yml

@@ -23,6 +23,8 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
 
       - name: Extract branch name
         shell: bash