Skip to content

Commit aa21e37

Browse files
committed
[pipeline] Trigger another workflow to label PRs
1 parent ef5777a commit aa21e37

2 files changed

Lines changed: 45 additions & 5 deletions

File tree

.github/workflows/label.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,22 @@
2121
# https://github.com/actions/labeler
2222

2323
name: Labeler
24+
2425
on:
25-
pull_request:
26-
branches:
27-
- master
28-
- release-*
26+
workflow_run:
27+
workflows: [Labeler-Trigger]
28+
types: [requested]
29+
30+
permissions:
31+
checks: write
32+
contents: read
33+
pull-requests: write
2934

3035
jobs:
3136
label:
32-
3337
runs-on: ubuntu-latest
3438
permissions:
39+
checks: write
3540
contents: read
3641
pull-requests: write
3742

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# This workflow will triage pull requests and apply a label based on the
17+
# paths that are modified in the pull request.
18+
#
19+
# To use this workflow, you will need to set up a .github/label.yml
20+
# file with configuration. For more information, see:
21+
# https://github.com/actions/labeler
22+
23+
name: Labeler-Trigger
24+
on:
25+
pull_request:
26+
branches:
27+
- master
28+
- release-*
29+
30+
jobs:
31+
label:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: "Do nothing. Just triggers corresponding workflow."
35+
run: echo

0 commit comments

Comments
 (0)