Skip to content

Actualizar repositorio iOS #1355

Actualizar repositorio iOS

Actualizar repositorio iOS #1355

Workflow file for this run

name: Actualizar repositorio iOS
on:
# Schedule updates (4 hours)
schedule: [{cron: "0 */6 * * *"}]
# Lines below let you run workflow manually and on each commit
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
download_and_upload:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Comprobación principal
uses: actions/[email protected]
- name: Ejecutar script de descarga y carga
run: |
chmod +x latest.sh
./latest.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Establecer la identidad del usuario Git
run: |
git config --global user.name "${{ secrets.GIT_USER_NAME }}"
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Aplicar cambios
run: |
git add .
git commit -m "Actualizar archivos desde GitHub Actions"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}