Skip to content

Commit 89e72b9

Browse files
committed
update
update
1 parent eb70f3c commit 89e72b9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/help-to-wiki.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- ".github/scripts/**"
99

1010
permissions:
11-
contents: read
11+
contents: write
1212

1313
concurrency:
1414
group: publish-help-to-wiki
@@ -116,3 +116,18 @@ jobs:
116116
git commit -m "Update help docs (HTML → Markdown)"
117117
git push
118118
119+
- name: Remove HTML files after conversion
120+
run: |
121+
set -euo pipefail
122+
SRC_DIR="help/SwiftCraftLauncher.help/Contents/Resources/en.lproj"
123+
rm -f "$SRC_DIR"/*.html
124+
git config user.name "github-actions[bot]"
125+
git config user.email "github-actions[bot]@users.noreply.github.com"
126+
git add -A
127+
if git diff --cached --quiet; then
128+
echo "No HTML files to remove."
129+
exit 0
130+
fi
131+
git commit -m "Remove HTML files (converted to Wiki Markdown)"
132+
git push
133+

0 commit comments

Comments
 (0)