forked from uBlockOrigin/uAssets
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 885 Bytes
/
Copy pathon-issue-created.yml
File metadata and controls
33 lines (30 loc) · 885 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
31
32
33
name: on-issue-created
on:
issues:
types: opened
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
jobs:
label-chromium:
runs-on: ubuntu-latest
if: "contains(github.event.issue.body, 'browser: Chrome') || contains(github.event.issue.body, 'browser: Edge')"
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "Chromium"
label-firefox:
runs-on: ubuntu-latest
if: "contains(github.event.issue.body, 'browser: Firefox')"
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "Firefox"
label-safari:
runs-on: ubuntu-latest
if: "contains(github.event.issue.body, 'browser: Safari')"
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label "Safari"