From 9f8afdbb756c642adfc40387711cde7810e9844a Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Sat, 18 Sep 2021 02:23:15 +0200 Subject: [PATCH] vcpkg ci: grep returns -1 when it finds nothing, use || true so that the term returns 0 --- .github/workflows/untrustedPR.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/untrustedPR.yml b/.github/workflows/untrustedPR.yml index 22ba597ddd6c97..cb77b745f8a2fb 100644 --- a/.github/workflows/untrustedPR.yml +++ b/.github/workflows/untrustedPR.yml @@ -38,7 +38,7 @@ jobs: git config user.email github-actions git config user.name github-actions@github.com - git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*portfile.cmake' | sed 's/[MAR]\t*//' | while read filename; do grep -q -E '(vcpkg_install_cmake|vcpkg_build_cmake|vcpkg_configure_cmake|vcpkg_fixup_cmake_targets)' "$filename" && echo " - \`$filename\`"; done > .github-pr.deprecated-cmake + git diff --name-status --merge-base HEAD^ HEAD --diff-filter=MAR -- '*portfile.cmake' | sed 's/[MAR]\t*//' | while read filename; do grep -q -E '(vcpkg_install_cmake|vcpkg_build_cmake|vcpkg_configure_cmake|vcpkg_fixup_cmake_targets)' "$filename" && echo " - \`$filename\`" || true; done > .github-pr.deprecated-cmake ./vcpkg format-manifest --all --convert-control git diff > .github-pr.format-manifest git add -u