Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/check_global_api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check Global API

on:
pull_request:
branches: [ develop ]

jobs:
check-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests Unidecode

- name: Run automated_api.py
run: python automated_api.py

- name: Check for changes
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: Running automated_api.py resulted in code changes."
echo "Please run 'python automated_api.py' locally and commit the changes."
git status
git diff
exit 1
fi