diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-21 23:13:20 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-08-21 23:13:22 +0900 |
commit | c030cec7cac3bacd230b87c9610bc67d8b89ab26 (patch) | |
tree | 83fb1ef5e6b5e0f24670219d1f1eb17b24747ce6 | |
parent | 3df9f3cc13b126cb270743c82f2c037c30a98103 (diff) |
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.
-rw-r--r-- | .github/workflows/ubuntu.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 13b7e04de9..cde821567e 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -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: | |