Skip to content

Commit

Permalink
Merge pull request #338 from ESUG/conditionalJobGHA
Browse files Browse the repository at this point in the history
Try to conditionally run agenda build
  • Loading branch information
gocko authored Sep 15, 2024
2 parents b86c9d2 + e22ec15 commit b138903
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b138903

Please sign in to comment.