-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish check descriptions to wiki (#60)
- Loading branch information
1 parent
349e35c
commit a7fc5d3
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.