forked from python/python-docs-es
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.28 KB
/
pospell-on-demand.yml
File metadata and controls
44 lines (43 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: pospell
on:
issue_comment:
types:
- edited
- created
jobs:
fix-spell:
name: Fix spelling
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }}
steps:
- name: Confirmar ejecucion
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createForIssueComment({
context.repo.owner,
context.repo.repo,
comment_id: context.payload.comment.id,
content: "+1",
});
- uses: actions/checkout@v3
- name: Preparar Python v3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- name: Instalar dependencias
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-es gettext
python -m pip install -r requirements.txt
- name: Ejecutar Powrap
run: powrap --quiet **/*.po
- name: Revisar con Pospell
run: python scripts/check_spell.py
continue-on-error: true
- name: Commit & Push changes
uses: actions-js/push@master
with:
message: "auto: spell check"
github_token: ${{ secrets.GITHUB_TOKEN }}