From d8ad4e902cd359cf0a58cc8fc759377ec3d3c026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Tue, 13 Aug 2019 14:15:14 +0200 Subject: [PATCH] meta: convert workflow file to GitHub Actions v2 yml syntax --- .github/main.workflow | 17 ----------------- .github/workflows/pull_request_triage.yml | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 17 deletions(-) delete mode 100644 .github/main.workflow create mode 100644 .github/workflows/pull_request_triage.yml diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 0dbb0247a..000000000 --- a/.github/main.workflow +++ /dev/null @@ -1,17 +0,0 @@ -workflow "Triage Pull Request" { - on = "pull_request" - resolves = ["Triage"] -} - -# Only act if there are code changes: if the pull_request -# event's action is either 'opened' (new PR) or 'synchronize' (new commits) -action "Filter actions" { - uses = "actions/bin/filter@0ac6d44" - args = "action 'opened|synchronize'" -} - -action "Triage" { - needs = ["Filter actions"] - uses = "ohmyzsh/github-actions/pull-request-triage@master" - secrets = ["GITHUB_TOKEN"] -} diff --git a/.github/workflows/pull_request_triage.yml b/.github/workflows/pull_request_triage.yml new file mode 100644 index 000000000..341298a0f --- /dev/null +++ b/.github/workflows/pull_request_triage.yml @@ -0,0 +1,14 @@ +on: pull_request +name: Triage Pull Request +jobs: + mainJob: + name: Triage + if: github.event.action == 'opened' || github.event.action == 'synchronize' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master + - name: Analyze and triage + uses: ohmyzsh/github-actions/pull-request-triage@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}