Skip to content

Commit

Permalink
enhancement: add CI step to catch changes to service artifacts (#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
stobrien89 authored Aug 29, 2023
1 parent 47a4545 commit c493da7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ permissions:
contents: read

jobs:
verify-no-models-changes:
runs-on: ubuntu-20.04
name: Check for model changes
if: github.event_name == 'pull_request'
steps:
- name: Checkout codebase
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
BASE_REPO="${{ github.event.pull_request.base.repo.clone_url }}"
git fetch $BASE_REPO master:master -q
CHANGED_FILES=$(git diff --name-only FETCH_HEAD...HEAD -- src/data/)
if [ ! -z "$CHANGED_FILES" ]; then
echo "Changes detected in the following models:"
echo "$CHANGED_FILES"
exit 1
fi
run:
runs-on: ubuntu-20.04
strategy:
Expand Down

0 comments on commit c493da7

Please sign in to comment.