瀏覽代碼

Update CLA.yml

Jumar Macato 1 年之前
父節點
當前提交
06b343413a
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. 3 5
      .github/workflows/CLA.yml

+ 3 - 5
.github/workflows/CLA.yml

@@ -7,18 +7,16 @@ on:
 
 jobs:
   Runner:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-latest0
     steps:
-    
       - name: 'Clone bot repo'
-        if: (github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target'
+        if: ${{ github.event.issue.pull_request }} && ((github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target')
         run : |
           rm -rf ./github-action/
           git clone https://${{ secrets.CLA_PAT }}:@github.com/AvaloniaUI/AvaloniaCLABot --branch=main --depth=1 --recursive CLABot
 
       - name: "Run CLA bot"
-
-        if: (github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target'
+        if: ${{ github.event.issue.pull_request }} && ((github.event.comment.user.login != 'cla-avalonia') || github.event_name == 'pull_request_target')
         uses: ./CLABot
         env:
           PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_PAT }}