diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index cb60c8dd..b4847eef 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 @@ -86,16 +86,3 @@ jobs: pwd echo "Files:" find * -ls - - - 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 32a7ff9d..49fa46bc 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