mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-04 18:22:03 +00:00
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:
parent
937e4d8daa
commit
814b8d4ba5
2 changed files with 2 additions and 2 deletions
2
.github/workflows/ci-python-sam.yaml
vendored
2
.github/workflows/ci-python-sam.yaml
vendored
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
|
|
||||||
# .gitignore must cover .env
|
# .gitignore must cover .env
|
||||||
if [[ -f .gitignore ]]; then
|
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"
|
fail ".gitignore does not include .env"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
||||||
2
.github/workflows/ci-typescript-cdk.yaml
vendored
2
.github/workflows/ci-typescript-cdk.yaml
vendored
|
|
@ -88,7 +88,7 @@ jobs:
|
||||||
|
|
||||||
# .gitignore must cover .env
|
# .gitignore must cover .env
|
||||||
if [[ -f .gitignore ]]; then
|
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"
|
fail ".gitignore does not include .env"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue