Skip to content

Add PSScriptAnalyzer & Docs workflow #12

Add PSScriptAnalyzer & Docs workflow

Add PSScriptAnalyzer & Docs workflow #12

Workflow file for this run

name: Build documentation
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
update_docs:
runs-on: windows-latest
steps:
- name: 🚚 Check out repository
uses: actions/checkout@v2
- name: 📦 Update documentation
shell: pwsh
run: |
Install-Module -Name platyPS -AllowPrerelease -Force -Verbose
Import-Module "$env:USERPROFILE\Documents\PowerShell\Modules\platyPS\2.0.0" -Force -Verbose
Update-MarkdownHelpModule .\docs\ -AlphabeticParamsOrder -RefreshModulePage -UpdateInputOutput -ModulePagePath .\docs\index.md
- name: 📦 Commit and push changes
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add .
git commit -m "Update documentation"
git push