nix: Fix CI job (#34231)

Fix regex filter

Release Notes:

- N/A
This commit is contained in:
Julia Ryan authored and GitHub committed 2025-07-10 20:17:49 +00:00
1 parent 5c8323f271
commit 1247cceb14
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ jobs:
echo "run_license=false" >> $GITHUB_OUTPUT
fi
NIX_REGEX='^(nix/|flake\.|Cargo\.|rust-toolchain.toml|\.cargo/config.toml)'
if [[ $(git diff --name-only $COMPARE_REV ${{ github.sha }} | grep "$NIX_REGEX") ]]; then
if [[ $(git diff --name-only $COMPARE_REV ${{ github.sha }} | grep -P "$NIX_REGEX") ]]; then
echo "run_nix=true" >> $GITHUB_OUTPUT
else
echo "run_nix=false" >> $GITHUB_OUTPUT