From c35c00dcfc43cf82968f75c0e633f143f33880d9 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Mon, 11 Mar 2024 13:18:02 +0100 Subject: [PATCH] [gha] Add more echo for checks done after quarto-dev config --- .github/workflows/actions/quarto-dev/action.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions/quarto-dev/action.yml b/.github/workflows/actions/quarto-dev/action.yml index 9195e4602c..7af9074e9c 100644 --- a/.github/workflows/actions/quarto-dev/action.yml +++ b/.github/workflows/actions/quarto-dev/action.yml @@ -34,9 +34,19 @@ runs: - name: Basic dev mode sanity check shell: pwsh run: | - If ( "$(quarto --version)" -ne "99.9.9") { Exit 1 } - If ( $(quarto --paths | Select-String -Pattern "package[/\\]+dist[/\\]+share") -ne $null ) { Exit 1 } - If ( "$(git status --porcelain)" -ne "" ) { Exit 1 } + If ( "$(quarto --version)" -ne "99.9.9") { + echo "Unexpected version detected: $(quarto --version)" + Exit 1 + } + If ( $(quarto --paths | Select-String -Pattern "package[/\\]+dist[/\\]+share") -ne $null ) { + echo "Unexpected package/dist/share path detected: $(quarto --paths)" + Exit 1 + } + If ( "$(git status --porcelain)" -ne "" ) { + echo "Uncommitted changes detected:" + git status --porcelain + Exit 1 + } - name: Quarto Check if: runner.debug == '1'