From 611c3a038247e9bd084fd7015f77d20715679f02 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 | 34 ++++++++++++++++++-- investigations/athena_monitoring/README.md | 2 +- investigations/evaluation_template/README.md | 2 +- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gh-deploy.yml b/.github/workflows/gh-deploy.yml index 7300614..7dda859 100644 --- a/.github/workflows/gh-deploy.yml +++ b/.github/workflows/gh-deploy.yml @@ -42,11 +42,39 @@ jobs: with: files: mission_statement/README.md - - name: Marp Build (README) - # if: steps.changed-mission-statement.outputs.any_changed == 'true' + - name: Marp Build (Mission statement) + if: steps.changed-mission-statement.outputs.any_changed == 'true' 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: Get changed investigations + id: changed-investigations + uses: tj-actions/changed-files@v44 + with: + files: investigations/*/*.md + dir_names: 'true' + + # - name: Copy Images directory (Investigations) + # env: + # ALL_CHANGED_FILES: ${{ steps.changed-investigations.outputs.all_changed_files }} + # run: | + # for directory in ${ALL_CHANGED_FILES}; do + # if [[ -d $directory/images ]]; + # then + # cp -R $directory/images build/images; + # echo "copied " + # fi + # done + + # - name: Marp Build (Investigations) + # env: + # ALL_CHANGED_FILES: ${{ steps.changed-investigations.outputs.all_changed_files }} + # run: | + # for directory in ${ALL_CHANGED_FILES}; do + # npx @marp-team/marp-cli@latest $directory/README.md \ + # -o build/$directory.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