Browse Source

Only run on pull_request_target, use jellyfin-bot (#12599)

Cody Robibero 9 tháng trước cách đây
mục cha
commit
5929a04bea
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      .github/workflows/ci-compat.yml

+ 3 - 1
.github/workflows/ci-compat.yml

@@ -1,7 +1,6 @@
 name: ABI Compatibility
 name: ABI Compatibility
 on:
 on:
   pull_request_target:
   pull_request_target:
-  pull_request:
 
 
 permissions: {}
 permissions: {}
 
 
@@ -68,6 +67,7 @@ jobs:
       pull-requests: write  #  to create or update comment (peter-evans/create-or-update-comment)
       pull-requests: write  #  to create or update comment (peter-evans/create-or-update-comment)
 
 
     name: ABI - Difference
     name: ABI - Difference
+    if: ${{ github.event_name == 'pull_request_target' }}
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     needs:
     needs:
       - abi-head
       - abi-head
@@ -119,6 +119,7 @@ jobs:
           issue-number: ${{ github.event.pull_request.number }}
           issue-number: ${{ github.event.pull_request.number }}
           comment-id: ${{ steps.find-comment.outputs.comment-id }}
           comment-id: ${{ steps.find-comment.outputs.comment-id }}
           edit-mode: replace
           edit-mode: replace
+          token: ${{ secrets.JF_BOT_TOKEN }}
           body: |
           body: |
             <!--abi-diff-workflow-comment-->
             <!--abi-diff-workflow-comment-->
             <details>
             <details>
@@ -137,6 +138,7 @@ jobs:
           issue-number: ${{ github.event.pull_request.number }}
           issue-number: ${{ github.event.pull_request.number }}
           comment-id: ${{ steps.find-comment.outputs.comment-id }}
           comment-id: ${{ steps.find-comment.outputs.comment-id }}
           edit-mode: replace
           edit-mode: replace
+          token: ${{ secrets.JF_BOT_TOKEN }}
           body: |
           body: |
             <!--abi-diff-workflow-comment-->
             <!--abi-diff-workflow-comment-->
             <details>
             <details>