Skip to content

Added Bangladesh Inter university Nationals Debate Format #260

Added Bangladesh Inter university Nationals Debate Format

Added Bangladesh Inter university Nationals Debate Format #260

Workflow file for this run

# Workflow to check files for XML syntax and other lint checks
#
# This also does a dry run of updating formats.json, printing the diff but not committing changes.
# Based on the Python workflow template:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Validate XML files
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install lxml pre-commit
- name: Run lint checks
run: |
pre-commit run --all-files
- name: Validate XML files against schema
run: |
python scripts/validate_xml_schema.py
- name: Validate version numbers (pull request)
if: github.event_name == 'pull_request'
run: |
python scripts/check_version_bump.py --base-ref=${{ github.event.pull_request.base.sha }}
- name: Validate version numbers (push)
if: github.event_name == 'push' && !github.event.forced && github.event.before != '0000000000000000000000000000000000000000'
run: |
python scripts/check_version_bump.py --base-ref=${{ github.event.before }}
- name: Check for wrongly located files
run: |
python scripts/check_wrongly_located_files.py
# diff exits with 1 if differences, 2 if trouble; "|| [ $? -eq 1 ]" gets it to treat 1 as success
- name: Dry run of updating formats.json
run: |
python scripts/update_list.py -O v1/formats-updated.json
diff -s v1/formats.json v1/formats-updated.json || [ $? -eq 1 ]