build-docs #3
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
# Regenerates the documentation for the "Command Reference" section of the site https://maester.dev | |
name: build-docs | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "src/**" | |
- "!src/MSIdentityTools.psd1" | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow updates to the repository | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update docs | |
run: ./build/Update-CommandReference.ps1 | |
shell: pwsh | |
- name: Create PR to update repo | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Update command reference |