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
This commit is contained in:
VictoriousRaptor 2023-01-02 17:05:37 +08:00 committed by GitHub
parent 43b8cc5a7b
commit c53fdc1ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 8 deletions

View file

@ -57,12 +57,12 @@
^\.github/actions/spelling/
^\Q.github/workflows/spelling.yml\E$
# Custom
(?:^|/)Languages/(?!en.xaml)
(?:^|/)Languages/(?!en\.xaml)
Scripts/
Plugins/Flow.Launcher.Plugin.WindowsSettings/Properties/
Plugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json
Plugins/Flow.Launcher.Plugin.WebSearch/setting.json
(?:^|/)FodyWeavers.xml
\.resx$
^\QPlugins/Flow.Launcher.Plugin.WindowsSettings/WindowsSettings.json\E$
^\QPlugins/Flow.Launcher.Plugin.WebSearch/setting.json\E$
(?:^|/)FodyWeavers\.xml
.editorconfig
ignore$
\.ps1$

View file

@ -57,4 +57,8 @@ runas
dpi
popup
ptr
pluginindicator
pluginindicator
TobiasSekan
Img
img
resx

View file

@ -111,6 +111,7 @@
# html tag
<\w+[^>]*>
</\w+[^>]*>
#http/https
(?:\b(?:https?|ftp|file)://)[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]

View file

@ -65,11 +65,11 @@ jobs:
outputs:
followup: ${{ steps.spelling.outputs.followup }}
runs-on: ubuntu-latest
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'"
if: (contains(github.event_name, 'pull_request') && github.head_ref != 'l10n_dev') || github.event_name == 'push'
concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
# note: If you use only_check_changed_files, you do not want cancel-in-progress
cancel-in-progress: true
cancel-in-progress: false
steps:
- name: check-spelling
id: spelling