From 3f6a3774e3b1afdf5bbb13e91cd57a995d4a4fb5 Mon Sep 17 00:00:00 2001 From: Mathieu Lobet Date: Fri, 25 Oct 2024 12:38:20 +0200 Subject: [PATCH] test filter for latex compilation --- .github/workflows/courses.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/courses.yml b/.github/workflows/courses.yml index 5235727..8d88a42 100644 --- a/.github/workflows/courses.yml +++ b/.github/workflows/courses.yml @@ -6,7 +6,23 @@ on: [push] jobs: + changes: + runs-on: ubuntu-latest + outputs: + output1: ${{ steps.filter.outputs.workflows }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + beginner: + - 'courses/01_beginners/*.tex' + - 'images' + build_beginner_course: + needs: changes + if: ${{ needs.changes.outputs.beginner == 'true' }} runs-on: ubuntu-latest steps: - name: Set up Git repository