forked from testcontainers/testcontainers-python
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 878 Bytes
/
attention-label.yml
File metadata and controls
30 lines (30 loc) · 878 Bytes
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
name: Automatically add or remove labels
on:
issue_comment:
types:
- created
jobs:
show-metadata:
runs-on: ubuntu-latest
steps:
# Use environment variable to print the metadata (cf. https://github.com/actions/runner/issues/1656#issuecomment-1030077729).
- name: Show metadata
run: echo $JSON
env:
JSON: ${{ toJson(github.event) }}
add-label:
if: ${{ github.event.comment.user.login != 'tillahoffmann' }}
runs-on: ubuntu-latest
steps:
- name: Add label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: '👀 requires attention'
remove-label:
if: ${{ github.event.comment.user.login == 'tillahoffmann' }}
runs-on: ubuntu-latest
steps:
- name: Remove label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: '👀 requires attention'