Repository navigation
Expand file tree
/
Copy pathprow.yml
More file actions
60 lines (56 loc) · 2.39 KB
/
Copy pathprow.yml
File metadata and controls
60 lines (56 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Prow for this repository: /commands on issues and pull requests, needs-* labels, reviewers
# from OWNERS files, automatic merging on lgtm, and labels created from prow.yaml.
# Docs: https://github.com/cncf/prow-github-actions/blob/main/docs/installing.md
name: Prow
on:
issues:
types: [opened, reopened, labeled, unlabeled]
issue_comment:
types: [created]
# pull_request_target, not pull_request: fork pull requests get a write token, so they can be
# labeled and merged too. This is safe because nothing here checks out or runs pull request
# code; the reusable workflow only checks out cncf/prow-github-actions itself.
pull_request_target:
types: [opened, reopened, synchronize, ready_for_review, labeled, unlabeled]
pull_request_review:
types: [submitted, dismissed]
check_suite:
types: [completed]
# backstop for merges missed by the events above
schedule:
- cron: '0 * * * *'
# label-sync: run once after installing, then whenever .github/prow.yaml changes
workflow_dispatch:
push:
branches: [$default-branch]
paths: [.github/prow.yaml]
# the reusable workflow can use at most what is granted here
permissions:
contents: write
issues: write
pull-requests: write
statuses: write
actions: write
# One run per comment (commands are never collapsed); per event+action for everything else,
# so a pending `synchronize` run can only be superseded by a newer `synchronize` run.
# Never cancel a run that may be merging.
concurrency:
group: prow-${{ github.event_name }}-${{ github.event.action }}-${{ github.event.comment.id || github.event.pull_request.number || github.event.issue.number || github.run_id }}
cancel-in-progress: false
jobs:
prow:
if: github.event_name != 'workflow_dispatch' && github.event_name != 'push'
uses: cncf/prow-github-actions/.github/workflows/prow.yml@v3.5.0
# optional; the defaults enable every built-in command and the lgtm job
# with:
# prow-commands: /lgtm /approve /hold /kind /area /priority
# merge-method: squash
# optional; only for a token that can read a private <org>/.project or a /meow key
# secrets:
# token: ${{ secrets.PROW_TOKEN }}
# cat-api-key: ${{ secrets.CAT_API_KEY }}
label-sync:
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
uses: cncf/prow-github-actions/.github/workflows/prow.yml@v3.5.0
with:
jobs: label-sync