Skip to content

build-docs

build-docs #1

Workflow file for this run

# Regenerates the documentation for the "Command Reference" section of the site https://maester.dev
#
name: build-docs
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- "./powershell/Maester.psm1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow updates to the repository
permissions:
contents: write
id-token: write
jobs:
build-validation:

Check failure on line 21 in .github/workflows/build-docs.yaml

View workflow run for this annotation

GitHub Actions / build-docs

Invalid workflow file

The workflow is not valid. .github/workflows/build-docs.yaml (Line: 21, Col: 3): Error calling workflow 'maester365/maester/.github/workflows/build-validation.yaml@d570cf86d42d9664d4298d08f175cc5da8c6a6c3'. The workflow is requesting 'checks: write', but is only allowed 'checks: none'.
uses: ./.github/workflows/build-validation.yaml
build:
needs: build-validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update docs
run: ./build/Update-CommandReference.ps1
shell: pwsh
- name: Update repo
run: |
if [[ `git status --porcelain` ]]; then
# Changes
echo "Updating command reference"
git config --global user.name 'Merill Fernando'
git config --global user.email 'merill@users.noreply.github.com'
git add -A && git commit -m "Bot: Updating command reference"
git push
else
# No changes
echo "No changes"
fi