Skip to content

updating readme

updating readme #21

Workflow file for this run

name: Sync Course Content on PR
on:
push:
branches: [sync-course]
pull_request:
branches: [sync-course]
env:
OMEGAUP_API_TOKEN: ${{ secrets.OMEGAUP_API_TOKEN }}
GIT_USERNAME: ${{ github.actor }}
jobs:
sync-content:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository with PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv==2023.11.15
- name: Install Python dependencies with pipenv
run: |
cd utils
pipenv install
- name: Run course download script
working-directory: utils
run: pipenv run python3 download_and_sync_courses.py
- name: Pull lint container
run: ./utils/lint --only-pull-image
- name: Fix lints
run: |
echo "Running lint fix..."
./utils/lint fix --all || true
git add .
- name: Commit and push changes
id: commit
run: |
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
# Only commit if there are changes
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "📝 Auto-sync: Downloaded latest OmegaUp content"
git push
fi