From a54d2b5a7c189823b2030c0a56a05dfb97b9d10a Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Tue, 9 Jul 2024 15:05:21 -0500 Subject: [PATCH 1/5] Use ACTIONS_RUNNER_DEBUG for diagnostics flag --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 12bccde0..e0e8f8cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ on: env: DOTNET_VERSION: ${{ '8.0.201' }} - ENABLE_DIAGNOSTICS: true + ENABLE_DIAGNOSTICS: ${{ env.ACTIONS_RUNNER_DEBUG }} MSBUILD_VERBOSITY: normal #COREHOST_TRACE: 1 COREHOST_TRACEFILE: corehosttrace.log From aa91144806e96b61b8e4ee1b079d624bf8e31000 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Tue, 9 Jul 2024 17:09:11 -0500 Subject: [PATCH 2/5] Use github instead of env for ACTIONS_RUNNER_DEBUG flag --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0e8f8cf..e9461766 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ on: env: DOTNET_VERSION: ${{ '8.0.201' }} - ENABLE_DIAGNOSTICS: ${{ env.ACTIONS_RUNNER_DEBUG }} + ENABLE_DIAGNOSTICS: ${{ github.ACTIONS_RUNNER_DEBUG }} MSBUILD_VERBOSITY: normal #COREHOST_TRACE: 1 COREHOST_TRACEFILE: corehosttrace.log From 2f3e626fefed87fd627cf184715b6abd0e3de23d Mon Sep 17 00:00:00 2001 From: "Michael Hawker MSFT (XAML Llama)" <24302614+michael-hawker@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:55:51 -0700 Subject: [PATCH 3/5] Update .github/workflows/build.yml Co-authored-by: Arlo --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e9461766..7110a865 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,8 @@ on: env: DOTNET_VERSION: ${{ '8.0.201' }} + # Debug logging enabled via GitHub UI during reruns or set as repo secret. + # See also https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging ENABLE_DIAGNOSTICS: ${{ github.ACTIONS_RUNNER_DEBUG }} MSBUILD_VERBOSITY: normal #COREHOST_TRACE: 1 From 0b50ad70a44c4ae5354411a61888d569171b9bf1 Mon Sep 17 00:00:00 2001 From: Arlo Date: Thu, 11 Jul 2024 14:24:07 -0500 Subject: [PATCH 4/5] Update .github/workflows/build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7110a865..6e42e434 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ env: DOTNET_VERSION: ${{ '8.0.201' }} # Debug logging enabled via GitHub UI during reruns or set as repo secret. # See also https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging - ENABLE_DIAGNOSTICS: ${{ github.ACTIONS_RUNNER_DEBUG }} + ENABLE_DIAGNOSTICS: ${{ github.ACTIONS_STEP_DEBUG }} MSBUILD_VERBOSITY: normal #COREHOST_TRACE: 1 COREHOST_TRACEFILE: corehosttrace.log From f4653a2ea03cf181dedddebad8b67a24836e13a2 Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Wed, 24 Jul 2024 18:50:00 -0500 Subject: [PATCH 5/5] Use runner.debug flag for diagnostics --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e42e434..4f9ee19c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ env: DOTNET_VERSION: ${{ '8.0.201' }} # Debug logging enabled via GitHub UI during reruns or set as repo secret. # See also https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging - ENABLE_DIAGNOSTICS: ${{ github.ACTIONS_STEP_DEBUG }} + ENABLE_DIAGNOSTICS: ${{ runner.debug }} MSBUILD_VERBOSITY: normal #COREHOST_TRACE: 1 COREHOST_TRACEFILE: corehosttrace.log