Debug GitHub context on broken notification

sometimes Slack notification footer becomes just " at ".
It seems like `github.event.head_commit` is missing. Let me debug the
context.
This commit is contained in:
Takashi Kokubun 2019-08-21 23:13:20 +09:00
parent 3df9f3cc13
commit c030cec7ca
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD
1 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,11 @@ jobs:
if: matrix.test_task == 'test-bundled-gems' && !contains(github.event.head_commit.message, '[ci skip]')
- name: Leaked Globals
run: make -s leaked-globals
- name: Debug GitHub context
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
if: failure() && github.event_name == 'push'
- uses: k0kubun/action-slack@v1.0.0
with:
payload: |