From a88b17cbe63c177d1ce6bc5a7dfc8bd25fe6a07a Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 26 Nov 2020 12:38:57 -0500 Subject: [PATCH] add check if label is set to area/documentation Signed-off-by: Sebastian Malton --- .github/workflows/check-docs.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/check-docs.yml diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml new file mode 100644 index 0000000000..d6dfe6c2bf --- /dev/null +++ b/.github/workflows/check-docs.yml @@ -0,0 +1,42 @@ +name: Publish docs via GitHub Pages +on: + - pull_request +jobs: + build: + name: Check Docs + runs-on: ubuntu-latest + if: github.event.label.name != 'area/documentation' + strategy: + matrix: + node-version: [12.x] + steps: + - name: Set up Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git + pip install mike + + + - name: Checkout Release from lens + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: git config + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + + - name: Using Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Verify that the markdown is valid + run: | + yarn run mkdocs-verify