Skip to content

Commit

Permalink
support ci
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jan 1, 2025
1 parent 621cc6e commit 7a5dbf3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
echo "php_changes_detected=true" >> $GITHUB_OUTPUT
exit 0
fi
if echo "$CHANGED_FILES" | grep 'python/'; then
echo "Changes detected in python directory"
echo "python_changes_detected=true" >> $GITHUB_OUTPUT
fi
- name: Download purl
run: |
Expand All @@ -63,6 +67,11 @@ jobs:
mv webapp/etc/nginx/conf.d/default.conf webapp/etc/nginx/conf.d/default.conf.org
mv webapp/etc/nginx/conf.d/php.conf.org webapp/etc/nginx/conf.d/php.conf
- name: Update compose.yml if changes are detected
if: steps.check-changes.outputs.python_changes_detected == 'true'
run: |
purl -fail -overwrite -replace '@context: ruby/@context: python/@' ./webapp/docker-compose.yml
- name: Start the server
run: |
cd webapp
Expand Down

0 comments on commit 7a5dbf3

Please sign in to comment.