From c0c4c47509af2510f3b16bd17c33af57e294f1e1 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Sun, 18 Aug 2024 18:51:59 +0200 Subject: [PATCH] #318 Collect state on failure - Add for GH Pages build - Drop for Default build (not executed on Windows) --- .github/workflows/build-artifacts.yml | 17 ++--------------- .github/workflows/gh-pages.yml | 12 ++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 561fa31e..a97e41d5 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -75,8 +75,8 @@ jobs: path: | **/build - - name: Collect state upon failure (On Unix) - if: failure() && runner.os != 'Windows' + - name: Collect state upon failure + if: failure() run: | echo "Git:" git status @@ -87,16 +87,3 @@ jobs: echo "Files:" find * -ls ./gradlew javaToolchains - - - name: Collect state upon failure (On Windows) - if: failure() && runner.os == 'Windows' - shell: pwsh - run: | - echo "Git:" - git status - echo "Env:" - env - echo "PWD:" - pwd - echo "Files:" - Get-ChildItem -Recurse -File | Format-Table Name, Length, LastWriteTime \ No newline at end of file diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 9b680d41..93ba125f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -77,6 +77,18 @@ jobs: path: public retention-days: 7 + - name: Collect state upon failure + if: failure() + run: | + echo "Git:" + git status + echo "Env:" + env + echo "PWD:" + pwd + echo "Files:" + find * -ls + publish: runs-on: ubuntu-latest needs: pages