Skip to content

Commit

Permalink
Publish check descriptions to wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Feb 25, 2024
1 parent 349e35c commit 7758cb7
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-checks-wiki.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish checks to wiki
on:
push:
branches: [develop, checks-to-wiki]
paths:
- wiki/**
- .github/workflows/publish-checks-wiki.yml
concurrency:
group: publish-checks-wiki
cancel-in-progress: true
permissions:
contents: write
jobs:
publish-wiki:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
pwd
find .
- run: |
python3 -m pip install --upgrade pip
python3 -m pip install html2text
- 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)
html2text -b 0 $f > wiki/checks/$name.md
done
- uses: Andrew-Chen-Wang/github-wiki-action@v4
with:
path: wiki/checks
dry-run: true
Empty file added wiki/.gitignore
Empty file.

0 comments on commit 7758cb7

Please sign in to comment.