Actualizar juegos #7
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: Actualizar juegos | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 9 * * *" | |
| permissions: | |
| contents: write | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Descargar el hub y sus juegos | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Buscar nuevas versiones de los juegos | |
| run: git submodule update --remote --merge | |
| - name: Guardar referencias actualizadas | |
| shell: bash | |
| run: | | |
| if git diff --quiet --exit-code; then | |
| echo "Los juegos ya están al día." | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add PIRAMIDE-MOBILE-SIMPLE IMPOSTOR-MOBILE CUARTO-REY-MOBILE LA-BOTELLITA-MOBILE | |
| git commit -m "chore: actualizar juegos" | |
| git push |