Browse Source

fix: cicd, checkout sha

孙高猛 1 year ago
parent
commit
3fa55f9022
1 changed files with 2 additions and 0 deletions
  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