name: Upload Algorithms and Probability Summary
on:
  push:
    paths:
      - 'semester2/algorithms-and-probability/**'
jobs:
  upload_document:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Git repository
        uses: actions/checkout@v6
      - name: Upload to ComSol
        uses: ./.github/actions/upload-to-comsol
        with:
          access_token: ${{ secrets.TOKEN_AW }}
          file: ./semester2/algorithms-and-probability/aw-summary.pdf
          url: https://exams.vis.ethz.ch/api/document/jahutz/summary-fs25_0/files/653/update/
