浏览代码

meta: move if condition on workflow to steps

Provisional measure due to "Unexpected value 'if'" error. See https://github.community/t5/GitHub-API-Development-and/jobs-lt-job-id-gt-if-not-working/m-p/28980
Marc Cornellà 5 年之前
父节点
当前提交
4974143745
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/pull_request_triage.yml

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

@@ -1,13 +1,13 @@
 on: pull_request
 name: Triage Pull Request
 jobs:
-  mainJob:
+  triage:
     name: Triage
-    if: github.event.action == 'opened' || github.event.action == 'synchronize'
     runs-on: ubuntu-latest
     steps:
     - name: Checkout
       uses: actions/checkout@master
+      if: github.event.action == 'opened' || github.event.action == 'synchronize'
     - name: Analyze and triage
       uses: ohmyzsh/github-actions/pull-request-triage@master
       env: