Skip to content

Commit c53fdc1

Browse files
Fix crowdin spell check action (#1756)
* Tweak file exclusion rule * Exclude l10n_dev branch * Disable cancel in progress * Temporarily check all for test * Fix checking head ref * Stop checking Resources.resx * Update texts * Update regex * update exclude list * Test l10n_dev * ignore resx * update * fix branch head * update newline * update regex * test * remove test code * Exclude l10n_dev branch
1 parent 43b8cc5 commit c53fdc1

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/actions/spelling/excludes.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
^\.github/actions/spelling/
5858
^\Q.github/workflows/spelling.yml\E$
5959
# Custom
60-
(?:^|/)Languages/(?!en.xaml)
60+
(?:^|/)Languages/(?!en\.xaml)
6161
Scripts/
62-
Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/
63-
Plugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json
64-
Plugins/Flow.Launcher.Plugin.WebSearch/setting.json
65-
(?:^|/)FodyWeavers.xml
62+
\.resx$
63+
^\QPlugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json\E$
64+
^\QPlugins/Flow.Launcher.Plugin.WebSearch/setting.json\E$
65+
(?:^|/)FodyWeavers\.xml
6666
.editorconfig
6767
ignore$
6868
\.ps1$

.github/actions/spelling/expect.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@ runas
5757
dpi
5858
popup
5959
ptr
60-
pluginindicator
60+
pluginindicator
61+
TobiasSekan
62+
Img
63+
img
64+
resx

.github/actions/spelling/patterns.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111

112112
# html tag
113113
<\w+[^>]*>
114+
</\w+[^>]*>
114115

115116
#http/https
116117
(?:\b(?:https?|ftp|file)://)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]

.github/workflows/spelling.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565
outputs:
6666
followup: ${{ steps.spelling.outputs.followup }}
6767
runs-on: ubuntu-latest
68-
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'"
68+
if: (contains(github.event_name, 'pull_request') && github.head_ref != 'l10n_dev') || github.event_name == 'push'
6969
concurrency:
7070
group: spelling-${{ github.event.pull_request.number || github.ref }}
7171
# note: If you use only_check_changed_files, you do not want cancel-in-progress
72-
cancel-in-progress: true
72+
cancel-in-progress: false
7373
steps:
7474
- name: check-spelling
7575
id: spelling

0 commit comments

Comments
 (0)