mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
27 lines
590 B
YAML
27 lines
590 B
YAML
name: Labeler
|
|
|
|
on:
|
|
issues:
|
|
types: [opened, edited]
|
|
|
|
jobs:
|
|
label-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Search Linux Term
|
|
uses: actions-ecosystem/action-regex-match@v2
|
|
id: regex-match
|
|
with:
|
|
text: ${{ github.event.issue.body }}
|
|
regex: '\# Operating System(\s*)Linux'
|
|
flags: m
|
|
|
|
- name: Add Linux label
|
|
uses: actions-ecosystem/action-add-labels@v1
|
|
if: ${{ steps.regex-match.outputs.match != '' }}
|
|
with:
|
|
github_token: ${{ secrets.GH_TOKEN }}
|
|
labels: linux
|