Skip to content

Commit

Permalink
ci: use a new action to better check the contribution content
Browse files Browse the repository at this point in the history
Use new action to validate if contribution (PR) follows the guidelines on documentation content

For now only check if:
* files contain :description: attributes
* files not contain any forbidden attributes

Covers bonitasoft/bonita-documentation-site#591
Covers bonitasoft/bonita-documentation-site#422
  • Loading branch information
benjaminParisel committed Nov 24, 2023
1 parent 55e0c0c commit 7bb1c10
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/contribution-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ name: Contribution checks

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
pr-content-check:
runs-on: ubuntu-22.04
steps:
- name: Check PR content
uses: bonitasoft/actions/packages/pr-diff-checker@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
diffDoesNotContain: '["https://documentation.bonitasoft.com/", "Bonita BPM", "link:https", "link:http", "xref:https", "xref:http", "xref:_", "xref:#"]'
extensionsToCheck: '[".adoc"]'
check_antora_content_guidelines:
permissions:
pull-requests: write # "pr-antora-content-guidelines-checker" write PR comments when the PR doesn't match the "Guidelines"
uses: bonitasoft/bonita-documentation-site/.github/workflows/_reusable_pr-antora-content-guidelines-checker.yml@master

0 comments on commit 7bb1c10

Please sign in to comment.