浏览代码

Merge pull request #620 from gtardif/ci_labeller

Allow running action labeller on PR from forks, using pull_request-target
Guillaume Tardif 5 年之前
父节点
当前提交
6cb19ed26d
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      .github/workflows/labeler.yml

+ 5 - 4
.github/workflows/labeler.yml

@@ -1,10 +1,11 @@
-name: "Pull Request Labeler"
-on: [pull_request]
+name: 'Pull Request Labeler'
+on:
+  - pull_request_target
 
 jobs:
   triage:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/labeler@v2
+      - uses: actions/labeler@v2.1.1
         with:
-          repo-token: "${{ secrets.GITHUB_TOKEN }}"
+          repo-token: '${{ secrets.GITHUB_TOKEN }}'