Skip to content

Merge branch 'main' of https://github.com/fruithost/Documentation #19

Merge branch 'main' of https://github.com/fruithost/Documentation

Merge branch 'main' of https://github.com/fruithost/Documentation #19

Workflow file for this run

name: Run Tests
on:
push:
jobs:
run-tests:
runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Build Module-Packages
CI_COMMIT_AUTHOR: fruithost | Modules Builder
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get Sources
run: |
git clone https://github.com/fruithost/Panel.git ./src/
git clone https://github.com/fruithost/Documentation.wiki.git ./wiki/
- name: Generate HTML from Markdown
uses: ldeluigi/markdown-docs@latest
with:
src: ./src/
dst: ./wiki/
title: fruithost
language: en
icon: library
primary-color: indigo
secondary-color: indigo
hide-repository: false
- name: Commit changes
if: github.event_name == 'push'
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "fruithost@users.noreply.github.com"
cd ./wiki/
git add .
git diff-index --quiet HEAD || git commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push