[Actions] Add debug for the workflow to find why it does not work with hub. (#10026)

Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
This commit is contained in:
monojenkins 2020-11-03 13:03:14 -05:00 коммит произвёл GitHub
Родитель c4a7ded816
Коммит 3caa0a1cc3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -9,14 +9,22 @@ jobs:
name: Labels verification
steps:
- run: echo "$GITHUB_CONTEXT"
name: 'Debug context'
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- run: exit 0
name: 'Monojenkins PR'
# always happy if monojenkins
if: github.actor == 'monojenkins'
- run: exit 1
name: 'User PR with no labels'
# failure if not monojenkins and no labels
if: github.actor != 'monojenkins' && join(github.event.pull_request.labels, ',') == ''
- run: exit 0
name: 'User PR with labels'
# success if not monojenkins but labels
if: github.actor != 'monojenkins' && join(github.event.pull_request.labels, ',') != ''