Skip to content

Commit

Permalink
Merge branch 'sybila:main' into model_231
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaFlorekova authored Sep 21, 2024
2 parents 05ea2e2 + 4ca8949 commit 1010b19
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
name: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Python.
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
Expand All @@ -18,9 +18,12 @@ jobs:
run: rm -rf models/*
- name: Run a fresh model sync.
run: python3 sync.py
- name: Check if there is any change
id: get_changes
run: echo "::set-output name=changed::$(git status --porcelain | wc -l)"
- name: Check for changes
id: check_changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "changes=true" >> "$GITHUB_OUTPUT";
fi
- name: If there are changes, fail.
if: steps.get_changes.outputs.changed != 0
if: steps.check_changes.outputs.changed != 0
run: exit 1

0 comments on commit 1010b19

Please sign in to comment.