Links: Fetch data #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |