Bump tj-actions/changed-files from 9200e69727eb73eb060652b19946b8a2fdfb654b to b74df86ccb65173a8e33ba5492ac1a2ca6b216fd #834
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Agrega comentario a PR | |
on: | |
pull_request_target: | |
permissions: | |
contents: read | |
jobs: | |
define-comment: | |
name: Entradas sin traducción | |
runs-on: ubuntu-22.04 | |
outputs: | |
any_changed: ${{ steps.changed-files.outputs.any_changed }} | |
comment: ${{ steps.create-pr-comment.outputs.comment }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
persist-credentials: false | |
- name: Preparar Python v3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: "pip" | |
# checkout these files from the base branch to guarantee they haven't been | |
# modified by the PR | |
- uses: actions/checkout@v4 | |
with: | |
path: base-branch | |
sparse-checkout-cone-mode: false | |
sparse-checkout: | | |
requirements-own.txt | |
scripts/list_missing_entries.py | |
- name: Instalar dependencias | |
run: | | |
python -m pip install -r base-branch/requirements-own.txt | |
- name: Obtiene lista de archivos con cambios | |
id: changed-files | |
uses: tj-actions/changed-files@b74df86ccb65173a8e33ba5492ac1a2ca6b216fd | |
with: | |
files: | | |
**/*.po | |
- name: Calcular entradas faltantes | |
if: steps.changed-files.outputs.any_changed == 'true' | |
id: create-pr-comment | |
env: | |
CHANGED_PO_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
{ | |
echo 'comment<<EOF' | |
python base-branch/scripts/list_missing_entries.py --github $CHANGED_PO_FILES | |
echo EOF | |
} >> "$GITHUB_OUTPUT" | |
write-comment: | |
runs-on: ubuntu-22.04 | |
needs: [define-comment] | |
if: needs.define-comment.outputs.any_changed == 'true' | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Agregar comentario con entradas faltantes | |
uses: thollander/actions-comment-pull-request@v3 | |
with: | |
message: ${{ needs.define-comment.outputs.comment }} | |
comment-tag: missing-entries |