Skip to content

Commit

Permalink
fix directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Le authored and Long Le committed Sep 9, 2024
1 parent 878db8e commit c516f01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tyk-schema-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
# Determine which directory to process based on modified files
MODIFIED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }})
echo $MODIFIED_FILES
if echo "$MODIFIED_FILES" | grep -q '^infrastructure/staging/tyk/'; then
echo "environment=staging" >> $GITHUB_ENV
elif echo "$MODIFIED_FILES" | grep -q '^infrastructure/production/tyk/'; then
echo "environment=production" >> $GITHUB_ENV
if echo "$MODIFIED_FILES" | grep -q '^stg/'; then
echo "environment=stg" >> $GITHUB_ENV
elif echo "$MODIFIED_FILES" | grep -q '^/prod/'; then
echo "environment=prod" >> $GITHUB_ENV
else
echo "Error: No relevant files modified in the pull request." >&2
exit 1
Expand Down

0 comments on commit c516f01

Please sign in to comment.