Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nomaxg committed Mar 27, 2024
1 parent a5d8125 commit e3dcff0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check-demo-consistency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
paths:
- 'process-compose.yaml'
- 'docker-compose.yml'
- 'docker-compose.yaml'

jobs:
check-edits:
Expand All @@ -19,10 +19,10 @@ jobs:
FILES_CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
# Check if process-compose.yaml is edited
if echo "$FILES_CHANGED" | grep -q "process-compose.yaml"; then
if echo "$FILES_CHANGED" | grep -q "process-compose.yml"; then
# Fail if docker-compose.yml is not also edited
if ! echo "$FILES_CHANGED" | grep -q "docker-compose.yml"; then
echo "process-compose.yaml is edited but not docker-compose.yml"
if ! echo "$FILES_CHANGED" | grep -q "docker-compose.yaml"; then
echo "process-compose.yaml is edited but not docker-compose.yaml"
exit 1
fi
fi

0 comments on commit e3dcff0

Please sign in to comment.