Skip to content

Commit 8880397

Browse files
committed
blah
1 parent a3cf24e commit 8880397

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,22 @@ jobs:
3535
pip list
3636
pospell --version
3737
powrap --version
38-
- name: Obtiene la lista de archivos .po con cambios
38+
- name: Obtiene la lista de archivos .po con cambios (sólo en PRs)
39+
if: github.event_name == 'pull_request'
3940
id: changed-po-files
4041
uses: tj-actions/changed-files@v40
4142
with:
4243
files: |
4344
**/*.po
45+
- name: Calcula lista de archivos .po a revisar
46+
id: po-files-to-check
47+
env:
48+
PO_FILES_TO_CHECK: ${{ github.event_name == 'pull_request' && steps.changed-po-files.outputs.all_changed_files || '**/*.po' }}
49+
run: |
50+
echo "po_files_to_check=$PO_FILES_TO_CHECK" >> $GITHUB_OUTPUT
51+
echo "any_po_files_to_check=`test -n i\"$PO_FILES_TO_CHECK\" && true || false" >> $GITHUB_OUTPUT
4452
- name: Lista los archivos .po con cambios
45-
run: echo "Archivo(s) .po con cambios:" ${{ steps.changed-po-files.outputs.all_changed_files }}
53+
run: echo "Archivo(s) .po con cambios:" ${{ steps.po-files-to-check.outputs.po_files_to_check }}
4654
- name: TRANSLATORS
4755
run: |
4856
diff -Naur TRANSLATORS <(LANG=es python scripts/sort.py < TRANSLATORS)
@@ -52,9 +60,9 @@ jobs:
5260
run: |
5361
sphinx-lint */*.po
5462
- name: Pospell
55-
if: steps.changed-po-files.outputs.test_any_changed == 'true'
63+
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true'
5664
run: |
57-
python scripts/check_spell.py ${{ steps.changed-po-files.outputs.all_changed_files }}
65+
python scripts/check_spell.py ${{ steps.po-files-to-check.outputs.po_files_to_check }}
5866
- name: Construir documentación
5967
run: |
6068
# FIXME: Relative paths for includes in 'cpython'

0 commit comments

Comments
 (0)