From 79fb4d7cb03b5fe254fb0c43f5dc6e885cfbf013 Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Wed, 20 Oct 2021 14:42:16 -0700 Subject: [PATCH] Fix inadvertent failure of workflow step (#7420) This fixes an issue introduced with #7352: jobs fail immediately if any command has a non-zero exit code. The way we obtained the exit code of the `diff` command was incompatible with this policy, which is why we currently never upload any docs to `docs-ci`. --- .github/workflows/docs_upload.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docs_upload.yml b/.github/workflows/docs_upload.yml index 8f51bab77..f6ee6a0d3 100644 --- a/.github/workflows/docs_upload.yml +++ b/.github/workflows/docs_upload.yml @@ -81,8 +81,7 @@ jobs: mv docs-new target/docs-$NAME-$HASH cd target/ - (diff -r -x "*.zip" docs-master/ docs-$NAME-$HASH) - issame=$? + issame=$(diff -r -x "*.zip" docs-master/ docs-$NAME-$HASH; echo $?; exit 0) if [[ -n $ISTAG && $issame ]] then -- 2.30.2