forked from MetOffice/growss
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 1.03 KB
/
Copy pathlabel-pr.yaml
File metadata and controls
31 lines (27 loc) · 1.03 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
# ------------------------------------------------------------------------------
# (c) Crown copyright Met Office. All rights reserved.
# The file LICENCE, distributed with this code, contains details of the terms
# under which the code may be used.
# ------------------------------------------------------------------------------
name: Label PR
on:
workflow_call:
jobs:
label:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.fork }}
steps:
- name: Add label `contributor`
if: ${{ github.event.action == 'opened' }}
uses: MetOffice/growss/labeler@main
with:
issue: ${{ github.event.number }}
label: contributor
action: add
- name: Remove label `approved-for-ci`
if: ${{ github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'approved-for-ci') }}
uses: MetOffice/growss/labeler@main
with:
issue: ${{ github.event.number }}
label: approved-for-ci
action: remove