From e22ec15254c1d6aa2c505cb244035c40785d4a30 Mon Sep 17 00:00:00 2001 From: Gordana Rakic Date: Sun, 15 Sep 2024 19:09:04 +0200 Subject: [PATCH] Try to conditionally run agenda build --- .github/workflows/makefile.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index ada5f81f..22179de6 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -32,14 +32,22 @@ jobs: !path/**/*.pillar retention-days: 5 - agenda_build: + agenda_build: uses: pillar-markup/Microdown-Agenda/.github/workflows/main.yml@main - with: + with: agenda_filename: 2024-Conference/agenda-workshop.md;2024-Conference/agenda.md;2023-Conference/agenda.md;2023-Conference/agenda-workshop.md;2022-Conference/agenda.md;2022-Conference/agenda-workshop.md - + + check_and_build: + uses: yumemi-inc/changed-files@v3 + id: changed + with: + patterns: '*agenda*.md' + if: steps.changed.outputs.exists == 'true' + run: agenda_build + deploy: runs-on: ubuntu-latest - needs: [ecstatic_build, agenda_build] + needs: [ecstatic_build, check_and_build] steps: # needed by JamesIves/github-pages-deploy-action