diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8b6b52a890..5d2df419891 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,9 @@ jobs: - name: Store CI fixes in upstream artifact run: | mkdir -p upstream - git format-patch --stdout test_base > upstream/ci_fixes.patch + if git format-patch --stdout test_base > ci_fixes.patch; then + cp ci_fixes.patch upstream/ + fi - uses: actions/upload-artifact@v3 with: path: upstream diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 04ccb2b28fe..c7f4eb3aaeb 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -26,7 +26,9 @@ jobs: - name: Store CI fixes in upstream artifact run: | mkdir -p upstream - git format-patch --stdout test_base > upstream/ci_fixes.patch + if git format-patch --stdout test_base > ci_fixes.patch; then + cp ci_fixes.patch upstream/ + fi - uses: actions/upload-artifact@v3 with: path: upstream