name: Triage Issue
# Ensures that all opened issues are initially given the 'T-new' label
# unless one of the other triage labels is present.
on:
issues:
types: opened
jobs:
add_label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{
'T-accepted') &&
'T-rejected') }}
with:
labels: T-new