Skip to content

Commit

Permalink
Publish check descriptions to wiki (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Feb 25, 2024
1 parent 349e35c commit a7fc5d3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-checks-wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish checks to wiki
on:
push:
branches: [develop]
paths:
- .github/workflows/publish-checks-wiki.yml
- magik-checks/src/main/resources/nl/ramsolutions/sw/sonar/l10n/magik/rules
concurrency:
group: publish-checks-wiki
cancel-in-progress: true
permissions:
contents: write
jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
python3 -m pip install --upgrade pip
python3 -m pip install html2text==2024.2.25
- run: |
mkdir -p wiki/checks
for f in magik-checks/src/main/resources/nl/ramsolutions/sw/sonar/l10n/magik/rules/*.html
do
name=$(basename $f .html)
echo Generating wiki/checks/Check-$name.md
html2text -b 0 $f > wiki/checks/Check-$name.md
done
- uses: Andrew-Chen-Wang/github-wiki-action@86138cbd6328b21d759e89ab6e6dd6a139b22270
with:
path: wiki
#dry-run: true
if: ${{ github.repository_owner == 'StevenLooman' }}
Empty file added wiki/.gitignore
Empty file.

0 comments on commit a7fc5d3

Please sign in to comment.