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 }}