mirror of
https://github.com/Mzdyl/LiteLoaderQQNT_Install.git
synced 2026-10-29 14:49:53 +08:00
37 lines
877 B
YAML
37 lines
877 B
YAML
name: Issue Triage
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- reopened
|
|
jobs:
|
|
triage:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
|
|
- name: Check Issue Content
|
|
id: check_issue
|
|
run: |
|
|
if [[ "${{ github.event.issue.body }}" == *"- [x] Bug 反馈"* ]] && [[ "${{ github.event.issue.body }}" == *"!["* ]]; then
|
|
echo "::set-output name=priority::true"
|
|
else
|
|
echo "::set-output name=priority::false"
|
|
fi
|
|
|
|
- name: Label Issue as Priority
|
|
if: steps.check_issue.outputs.priority == 'true'
|
|
uses: actions-ecosystem/action-add-labels@v1
|
|
with:
|
|
github_token: ${{ secrets.AC_TOKEN }}
|
|
labels: 'priority'
|