mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 15:53:22 +01:00
meta: convert workflow file to GitHub Actions v2 yml syntax
This commit is contained in:
parent
40fafe0f59
commit
d8ad4e902c
17
.github/main.workflow
vendored
17
.github/main.workflow
vendored
@ -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"]
|
||||
}
|
14
.github/workflows/pull_request_triage.yml
vendored
Normal file
14
.github/workflows/pull_request_triage.yml
vendored
Normal file
@ -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 }}
|
Loading…
Reference in New Issue
Block a user