From 1c1f300efea6fb6d2848fe1d4872e5b4813917fc Mon Sep 17 00:00:00 2001 From: morguldir Date: Sun, 8 Sep 2024 17:41:02 +0200 Subject: [PATCH] ci: avoid propagating bash errors immidiately Signed-off-by: morguldir --- .github/workflows/ci.yml | 5 +++++ .github/workflows/documentation.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6959ec90..05dc7e6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,6 +139,7 @@ jobs: - name: Cache CI dependencies run: | # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 )) @@ -305,6 +306,7 @@ jobs: SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 )) @@ -345,6 +347,7 @@ jobs: SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 )) @@ -424,6 +427,7 @@ jobs: - name: Build OCI image ${{ matrix.target }} run: | # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 )) @@ -446,6 +450,7 @@ jobs: - name: Build debug OCI image ${{ matrix.target }} run: | # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 )) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 37f2c0f0..68fe3557 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -111,6 +111,7 @@ jobs: - name: Cache CI dependencies run: | # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 )) @@ -136,6 +137,7 @@ jobs: - name: Build documentation (book) run: | # attic nix binary cache server is very, very terribly flakey. nothing i can do to fix it other than retry multiple times here + set +e # Don't exit on errors ATTEMPTS=3 SUCCESS=false while (( ATTEMPTS-- > 0 ))