浏览代码

disable project automation in forks

these workflows always fail in forks due to missing tokens etc.
h1dden-da3m0n 4 年之前
父节点
当前提交
44b54a2637
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      .github/workflows/automation.yml

+ 2 - 0
.github/workflows/automation.yml

@@ -11,6 +11,7 @@ jobs:
   label:
     name: Labeling
     runs-on: ubuntu-latest
+    if: ${{ github.repository == 'jellyfin/jellyfin' }}
     steps:
       - name: Apply label
         uses: eps1lon/actions-label-merge-conflict@v2.0.1
@@ -22,6 +23,7 @@ jobs:
   project:
     name: Project board
     runs-on: ubuntu-latest
+    if: ${{ github.repository == 'jellyfin/jellyfin' }}
     steps:
       - name: Remove from 'Current Release' project
         uses: alex-page/github-project-automation-plus@v0.7.1