Fix .env gitignore check regex in CI workflows

Double backslash in single quotes makes ERE match a literal
backslash instead of a dot. No .gitignore entry could pass
this check. Affects both CDK and SAM CI workflows.
This commit is contained in:
Adam Moussa 2026-05-15 17:53:14 -04:00
parent 937e4d8daa
commit 814b8d4ba5
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ jobs:
# .gitignore must cover .env
if [[ -f .gitignore ]]; then
if ! grep -qE '^\\.env$|^\\.env\\b' .gitignore; then
if ! grep -qE '^\.env$|^\.env\b' .gitignore; then
fail ".gitignore does not include .env"
fi
else

View file

@ -88,7 +88,7 @@ jobs:
# .gitignore must cover .env
if [[ -f .gitignore ]]; then
if ! grep -qE '^\\.env$|^\\.env\\b' .gitignore; then
if ! grep -qE '^\.env$|^\.env\b' .gitignore; then
fail ".gitignore does not include .env"
fi
else