SimpleVM User Docs test #237
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: SimpleVM User Docs test | |
on: | |
schedule: | |
- cron: '0 12 * * *' | |
workflow_dispatch: | |
inputs: | |
mkdocs_branch: | |
required: true | |
description: "mkdocsWebhook branch to checkout" | |
default: "master" | |
pull_request: | |
jobs: | |
runner-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout simplevm-user-docs repository | |
uses: actions/checkout@v3 | |
with: | |
path: simplevm-user-docs | |
- name: Checkout mkdocsWebhook repository | |
uses: actions/checkout@v3 | |
with: | |
repository: deNBI/mkdocsWebhook | |
path: mkdocsWebhook | |
ref: ${{ github.event.inputs.mkdocs_branch }} | |
- name: Build mkdocsWebhook image | |
run: cd $GITHUB_WORKSPACE/mkdocsWebhook && docker build -t docs . | |
- name: Run Docker | |
run: cd $GITHUB_WORKSPACE/simplevm-user-docs && docker run -v "$(pwd):/srv_root/docs" -p "8000:8000" -e ENABLED_HTMLPROOFER=True -e SITE_URL=https://cloud.denbi.de/wiki/ --entrypoint="mkdocs" docs build -f /srv_root/docs/config.yml | |
- uses: Cadair/matrix-notify-action@main | |
name: Matrix Notification | |
if: ${{ failure() }} | |
with: | |
matrix_token: ${{ secrets.matrix_access_token }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
homeserver: 'https://matrix.org' | |
roomid: ${{ secrets.MATRIX_CRITICAL_ROOM }} | |
summarise_success: true |