Actualizar repositorio iOS #1355
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 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 }} |