[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:
Родитель
c4a7ded816
Коммит
3caa0a1cc3
|
@ -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, ',') != ''
|
||||
|
|
Загрузка…
Ссылка в новой задаче