[actions] Skip the label checker for pull requests from 'dotnet-maestro'. (#12823)

This commit is contained in:
Rolf Bjarne Kvinge 2021-09-23 21:15:51 +02:00 коммит произвёл GitHub
Родитель 5318a2b9fa
Коммит 8ba7ff3324
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 4 удалений

8
.github/workflows/label-checker.yml поставляемый
Просмотреть файл

@ -17,14 +17,14 @@ jobs:
- run: exit 0
name: 'Monojenkins PR'
# always happy if monojenkins
if: github.actor == 'vs-mobiletools-engineering-service2' || github.actor == 'github-actions[bot]'
if: github.actor == 'vs-mobiletools-engineering-service2' || github.actor == 'github-actions[bot] || github.actor == 'dotnet-maestro'
- run: exit 1
name: 'User PR with no labels'
# failure if not monojenkins and no labels
if: github.actor != 'vs-mobiletools-engineering-service2' && join(github.event.pull_request.labels, ',') == ''
# failure if not monojenkins and not dotnet-maestro and no labels
if: github.actor != 'vs-mobiletools-engineering-service2' && github.actor != 'dotnet-maestro' && join(github.event.pull_request.labels, ',') == ''
- run: exit 0
name: 'User PR with labels'
# success if not monojenkins but labels
if: github.actor != 'vs-mobiletools-engineering-service2' && join(github.event.pull_request.labels, ',') != ''
if: github.actor != 'vs-mobiletools-engineering-service2' && github.actor != 'dotnet-maestro' && join(github.event.pull_request.labels, ',') != ''