File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-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 : |
12+ github.event.comment.body == 'run-powrap'
13+ && github.event.issue.pull_request
14+ steps :
15+ - name : Confirmar ejecucion
16+ uses : actions/github-script@v6
17+ with :
18+ script : |
19+ const {owner, repo} = context.issue
20+ github.reactions.createForIssueComment({
21+ owner,
22+ repo,
23+ comment_id: context.payload.comment.id,
24+ content: "+1",
25+ });
26+ - uses : actions/checkout@v3
27+ - name : Preparar Python v3.10
28+ uses : actions/setup-python@v4
29+ with :
30+ python-version : " 3.10"
31+ cache : " pip"
32+ - name : Instalar dependencias
33+ run : |
34+ sudo apt-get update
35+ sudo apt-get install -y hunspell hunspell-es gettext
36+ python -m pip install -r requirements.txt
37+ - name : Ejecutar Powrap
38+ run : powrap --quiet **/*.po
39+ - name : Revisar con Pospell
40+ run : python scripts/check_spell.py
41+ continue-on-error : true
42+ - name : Commit & Push changes
43+ uses : actions-js/push@master
44+ with :
45+ message : " auto: spell check"
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments