Skip to content

Commit

Permalink
get changed investigations
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumayaMauthoorMOJ committed Jul 21, 2024
1 parent 6cc7eae commit 05e8664
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/gh-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion investigations/athena_monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion investigations/evaluation_template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _footer: ''

# Evaluation Template

## Centre for Excellence
## Centre for Excellence.

##### July 2024

Expand Down

0 comments on commit 05e8664

Please sign in to comment.