Skip to content

Commit

Permalink
ci: provide a reusable workflow to check Antora content guidelines (#642
Browse files Browse the repository at this point in the history
)

This workflow calls the "pr-antora-content-guidelines-checker" action with the configuration which applies to all documentation content repositories. This reduces the configuration maintenance. It applies to Pull Request only.

covers #422
  • Loading branch information
tbouffard authored Nov 24, 2023
1 parent 82cfb8d commit 2338df7
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Permissions required by this workflow that MUST be set in the calling workflow as this workflow can only downgrade permissions (https://docs.github.com/en/actions/using-workflows/reusing-workflows#supported-keywords-for-jobs-that-call-a-reusable-workflow)
# pull-requests: write / "pr-antora-content-guidelines-checker" write PR comments when the PR doesn't match the "Guidelines"
name: Check Antora content guidelines in Pull Request

on:
workflow_call: # this allows the workflow to be reused

jobs:
checks:
runs-on: ubuntu-22.04
steps:
- name: Check
uses: bonitasoft/actions/packages/pr-antora-content-guidelines-checker@v2
with:
attributes-to-check: ':description:'
files-to-check: 'adoc'
# WARN: Be aware that spaces after/before the coma are not trimmed by the action. This means that the spaces are part of the pattern.
forbidden-pattern-to-check: 'https://documentation.bonitasoft.com,link:https,link:http,link:,xref:https,xref:http,xref:_,xref:#,Bonita BPM'

0 comments on commit 2338df7

Please sign in to comment.