Skip to content

Commit d43e1d8

Browse files
committed
Add debug job to workflow
1 parent 810807b commit d43e1d8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/diff.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@ on:
44
types: [created]
55

66
jobs:
7+
debug:
8+
runs-on: ubuntu-latest
9+
needs: [diff, generate, summary]
10+
if: always() && (vars.ACTIONS_RUNNER_DEBUG || vars.ACTIONS_STEP_DEBUG )
11+
steps:
12+
- name: echo needs
13+
run: echo '${{ toJson(needs) }}'
14+
- name: echo github
15+
run: echo '${{ toJson(github) }}'
16+
- name: echo pull request
17+
run: echo '${{ github.event.issue.pull_request == 'true' }}'
18+
- name: echo comment association
19+
run: echo '${{ github.event.comment.author_association }} - ${{ github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER' }}'
20+
- name: echo comment body
21+
run: echo '${{ contains(github.event.comment.body, '\n/ci') || startsWith(github.event.comment.body, '/ci') }}'
22+
- name: echo generate diffs
23+
run: echo '${{ needs.generate.outputs.diffs != '{}' && needs.generate.outputs.diffs != '[]' && needs.generate.outputs.diffs != '' }}'
24+
- name: echo generate result
25+
run: echo '${{ needs.generate.result == 'success' }}'
726
generate:
827
runs-on: ubuntu-latest
928
outputs:

0 commit comments

Comments
 (0)