Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f36e72

Browse files
committed
wip: github action to run pospell
1 parent637ac62 commit9f36e72

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

‎.github/workflows/pospell.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name:pospell
2+
on:
3+
issue_comment:
4+
types:
5+
-created
6+
7+
jobs:
8+
fix-spell:
9+
name:Fix spelling
10+
runs-on:ubuntu-latest
11+
if:${{ github.event.comment.body == 'pospell-fix'}}
12+
steps:
13+
-name:Confirm process
14+
uses:actions/github-script@v6
15+
with:
16+
script:|
17+
const {owner, repo} = context.issue
18+
github.reactions.createForIssueComment({
19+
owner,
20+
repo,
21+
comment_id: context.payload.comment.id,
22+
content: "+1",
23+
});
24+
-uses:actions/checkout@v2
25+
-name:Preparar Python v3.10
26+
uses:actions/setup-python@v2
27+
with:
28+
python-version:"3.10"
29+
-name:Instalar dependencias
30+
run:|
31+
sudo apt-get update
32+
sudo apt-get install -y hunspell hunspell-es gettext
33+
python -m pip install -r requirements.txt
34+
-name:Powrap
35+
run:powrap --quiet **/*.po
36+
-name:Pospell
37+
run:python scripts/check_spell.py
38+
-name:Commit & Push changes
39+
uses:actions-js/push@master
40+
with:
41+
message:"auto: spell check"
42+
github_token:${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp