From 637a5dfc21a4f104bab8d8713b4182e9133b0c7f Mon Sep 17 00:00:00 2001 From: Aditya Sharad <6874315+adityasharad@users.noreply.github.com> Date: Wed, 19 Apr 2023 15:08:48 -0700 Subject: [PATCH] WIP: Only upload DBs from unsuccessful jobs --- .github/workflows/__swift-autobuild.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/__swift-autobuild.yml b/.github/workflows/__swift-autobuild.yml index f79c5d9de..f9364935a 100644 --- a/.github/workflows/__swift-autobuild.yml +++ b/.github/workflows/__swift-autobuild.yml @@ -52,7 +52,7 @@ jobs: echo "Did not create a database for Swift." fi - name: Upload artifact - if: always() + if: ${{ failure() || cancelled() }} uses: actions/upload-artifact@v3 with: name: swift-autobuild-dbs-${{ matrix.slice }}