[前][次][番号順一覧][スレッド一覧]

ruby-changes:57206

From: Takashi <ko1@a...>
Date: Wed, 21 Aug 2019 23:14:07 +0900 (JST)
Subject: [ruby-changes:57206] Takashi Kokubun: c030cec7ca (master): Debug GitHub context on broken notification

https://git.ruby-lang.org/ruby.git/commit/?id=c030cec7ca

From c030cec7cac3bacd230b87c9610bc67d8b89ab26 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
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.

diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 13b7e04..cde8215 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -60,6 +60,11 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/ubuntu.yml#L60
         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@v...
         with:
           payload: |
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]