Explorar o código

chore: manual fetch main branch

dragooncjw hai 10 meses
pai
achega
c38301707d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      .github/workflows/ci.yml

+ 2 - 2
.github/workflows/ci.yml

@@ -2,8 +2,6 @@ name: CI
 on:
 on:
   push:
   push:
     branches: [ "main" ]
     branches: [ "main" ]
-  pull_request_target:
-    branches: [ "main" ]
   pull_request:
   pull_request:
     branches: [ "main" ]
     branches: [ "main" ]
 jobs:
 jobs:
@@ -13,6 +11,8 @@ jobs:
       - uses: actions/checkout@v3
       - uses: actions/checkout@v3
         with:
         with:
           fetch-depth: 1
           fetch-depth: 1
+      - name: Fetch main branch
+        run: git fetch origin main --depth=1
       - name: Config Git User
       - name: Config Git User
         run: |
         run: |
           git config --local user.name "dragooncjw"
           git config --local user.name "dragooncjw"