Skip to content

Markdown files test and update #5

Markdown files test and update

Markdown files test and update #5

Workflow file for this run

on:
workflow_dispatch:
name: Markdown files test and update
permissions:
contents: write
pull-requests: write
jobs:
markdown-test-and-update:
name: Markdown files test and update
runs-on: ubuntu-latest
steps:
- name: Clone sources
uses: actions/checkout@v3
with:
path: sources
- name: Lauch localhost server
run: |
sudo npm install --global http-server
http-server ./sources &
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check links in Markdown files
run: |
gem install awesome_bot
cd sources
awesome_bot README.md --skip-save-results --allow-dupe --base-url http://localhost:8080/ --white-list ddev.site
- uses: technote-space/toc-generator@v4
with:
MAX_HEADER_LEVEL: 3
TARGET_PATHS: 'README.md'
CHECK_ONLY_DEFAULT_BRANCH: true
CREATE_PR: true