File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2828 with :
2929 github_token : ${{ github.token }}
3030 permission : write
31+ - name : Debug Information
32+ if : ${{ github.event_name == 'pull_request_target' }}
33+ run : |
34+ echo "Event Name: ${{ github.event_name }}"
35+ echo "Labels: ${{ toJson(github.event.pull_request.labels) }}"
36+ echo "Permitted: ${{ steps.check.outputs.permitted }}"
37+ echo "Safe to Test Label Present: ${{ contains(github.event.pull_request.labels.*.name, 'safe to test') }}"
3138 - name : Check PR Safe to Run
32- if : ${{ github.event_name == 'pull_request_target' && ( contains(github.event.pull_request.labels.*.name, 'safe to test') == 'false ') && steps.check.outputs.permitted == 'false' }}
39+ if : ${{ github.event_name == 'pull_request_target' && ! contains(github.event.pull_request.labels.*.name, 'safe to test') && steps.check.outputs.permitted == 'false' }}
3340 run : exit 1
3441 - name : Remove Safe to Test Label # One commit is safe doesn't mean the next commit is safe.
3542 if : ${{ github.event_name == 'pull_request_target' }}
You can’t perform that action at this time.
0 commit comments