mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 03:43:10 +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
|
||||
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
|
||||
|
|
|
|||
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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue