Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Make filter script less error-prone (#49670)
Piotr Osiewiczbba415b2b8fc
diff --git a/.github/workflows/extension_tests.yml b/.github/workflows/extension_tests.ymlindex 28eb08cdab9..f1f414c1d95 100644--- a/.github/workflows/extension_tests.yml+++ b/.github/workflows/extension_tests.yml@@ -23,6 +23,7 @@ jobs:- id: filtername: filterrun: |+ set -euo pipefailif [ -z "$GITHUB_BASE_REF" ]; thenecho "Not in a PR context (i.e., push to main/stable/preview)"COMPARE_REV="$(git rev-parse HEAD~1)"diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.ymlindex 72693eb8939..3e464c1b54e 100644--- a/.github/workflows/run_tests.yml+++ b/.github/workflows/run_tests.yml@@ -26,6 +26,7 @@ jobs:- id: filtername: filterrun: |+ set -euo pipefailif [ -z "$GITHUB_BASE_REF" ]; thenecho "Not in a PR context (i.e., push to main/stable/preview)"COMPARE_REV="$(git rev-parse HEAD~1)"diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rsindex f141c92e1f1..c234f46f3dd 100644--- a/tooling/xtask/src/tasks/workflows/run_tests.rs+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs@@ -105,6 +105,7 @@ fn orchestrate_impl(rules: &[&PathCondition], include_package_filter: bool) -> Nlet mut script = String::new();script.push_str(indoc::indoc! {r#"+ set -euo pipefailif [ -z "$GITHUB_BASE_REF" ]; thenecho "Not in a PR context (i.e., push to main/stable/preview)"COMPARE_REV="$(git rev-parse HEAD~1)"