d8ad4e902cd359cf0a58cc8fc759377ec3d3c026
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
meta: convert workflow file to GitHub Actions v2 yml syntax
Diff
1diff --git a/.github/main.workflow b/.github/main.workflow
2deleted file mode 100644
3index 0dbb0247ab0e6bbaafe84671948aff9e43657229..0000000000000000000000000000000000000000
4--- a/.github/main.workflow
5+++ /dev/null
6@@ -1,17 +0,0 @@
7-workflow "Triage Pull Request" {
8- on = "pull_request"
9- resolves = ["Triage"]
10-}
11-
12-# Only act if there are code changes: if the pull_request
13-# event's action is either 'opened' (new PR) or 'synchronize' (new commits)
14-action "Filter actions" {
15- uses = "actions/bin/filter@0ac6d44"
16- args = "action 'opened|synchronize'"
17-}
18-
19-action "Triage" {
20- needs = ["Filter actions"]
21- uses = "ohmyzsh/github-actions/pull-request-triage@master"
22- secrets = ["GITHUB_TOKEN"]
23-}
24diff --git a/.github/workflows/pull_request_triage.yml b/.github/workflows/pull_request_triage.yml
25new file mode 100644
26index 0000000000000000000000000000000000000000..341298a0f63e0cf9e86c00eb505bfb4b5559670e
27--- /dev/null
28+++ b/.github/workflows/pull_request_triage.yml
29@@ -0,0 +1,14 @@
30+on: pull_request
31+name: Triage Pull Request
32+jobs:
33+ mainJob:
34+ name: Triage
35+ if: github.event.action == 'opened' || github.event.action == 'synchronize'
36+ runs-on: ubuntu-latest
37+ steps:
38+ - name: Checkout
39+ uses: actions/checkout@master
40+ - name: Analyze and triage
41+ uses: ohmyzsh/github-actions/pull-request-triage@master
42+ env:
43+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}