From c030cec7cac3bacd230b87c9610bc67d8b89ab26 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 21 Aug 2019 23:13:20 +0900 Subject: 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. --- .github/workflows/ubuntu.yml | 5 +++++ 1 file changed, 5 insertions(+) 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: | -- cgit v1.2.3