File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments