Skip to content

Commit

Permalink
#318 Collect state on failure
Browse files Browse the repository at this point in the history
- Add for GH Pages build
- Drop for Default build (not executed on Windows)
  • Loading branch information
ascheman committed Oct 8, 2024
1 parent cb25f30 commit abdc4d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
12 changes: 12 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abdc4d8

Please sign in to comment.