From 05e8664e7dcadee243d2ab96cfaf227e8e96d484 Mon Sep 17 00:00:00 2001 From: SoumayaMauthoorMOJ Date: Sun, 21 Jul 2024 09:55:04 +0100 Subject: [PATCH] get changed investigations --- .github/workflows/gh-deploy.yml | 28 +++++++++++++------- investigations/athena_monitoring/README.md | 2 +- investigations/evaluation_template/README.md | 2 +- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 7300614..b98b234 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -36,17 +36,27 @@ jobs: - name: Download moj theme run: wget https://raw.githubusercontent.com/ministryofjustice/marp-moj-theme/main/themes/moj.css - - name: Get changed mission statement - id: changed-mission-statement - uses: tj-actions/changed-files@v44 - with: - files: mission_statement/README.md - - - name: Marp Build (README) - # if: steps.changed-mission-statement.outputs.any_changed == 'true' + - name: Marp Build (Mission statement) run: | - npx @marp-team/marp-cli@latest slide-deck.md mission_statement/README.md \ + npx @marp-team/marp-cli@latest mission_statement/README.md \ -o build/index.html --theme moj.css --html + + - name: Copy Images directory (Investigations) + run: | + for directory in investigations/*/ ; do + if [[ -d $directory/images ]]; + then + cp -R $directory/images build/$(basename $directory)/images; + echo "copied $directory/images" + fi + done + + - name: Marp Build (Investigations) + run: | + for directory in investigations/*/ ; do + npx @marp-team/marp-cli@latest $directory/README.md \ + -o build/$(basename $directory)/index.html --theme moj.css --html + done - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/investigations/athena_monitoring/README.md b/investigations/athena_monitoring/README.md index 5af24f1..d61ad97 100644 --- a/investigations/athena_monitoring/README.md +++ b/investigations/athena_monitoring/README.md @@ -12,7 +12,7 @@ _footer: '' # [Monitoring Athena and Data Access](https://github.com/moj-analytical-services/dmet-cfe/tree/main/investigations/athena_monitoring) -## Centre for Excellence +## Centre for Excellence. ##### July 2024 diff --git a/investigations/evaluation_template/README.md b/investigations/evaluation_template/README.md index e300ede..7ae1709 100644 --- a/investigations/evaluation_template/README.md +++ b/investigations/evaluation_template/README.md @@ -12,7 +12,7 @@ _footer: '' # Evaluation Template -## Centre for Excellence +## Centre for Excellence. ##### July 2024