Fixed link #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bard | |
on: | |
pull_request: | |
types: [opened,synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
python -m pip install mkdocs-material | |
# Build Documentation | |
- name: Build documentation | |
run: mkdocs build | |
- name: Compare Changes | |
id: compare_changes | |
uses: actions/upload-artifact@v3 | |
with: | |
name: generated-docs | |
path: site | |
# Update dev branch | |
- name: Update dev branch if changes detected | |
# if: steps.compare_changes.outputs.artifact.size > 0 | |
run: | | |
ls -l site/* | |
git checkout dev | |
git merge blueprint | |
git add site/* | |
git commit -m "Update dev documentation to include blueprint changes" | |
git push origin dev | |
# Notify reviwer | |
- name: Notify reviewer | |
if: steps.compare_changes.outputs.artifact_size > 0 | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
github.issues.create({ | |
title: "Documentation update available for review", | |
body: "The documentation has been updated and is ready for review. Please review the changes on the dev branch.", | |
assignees: ["martincaddick"] | |
}) | |