-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (31 loc) · 1.09 KB
/
automatizacion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Automatización diaria
on:
schedule:
- cron: '0 23 * * *' # Ejecutar diariamente a las 23 UTC
workflow_dispatch: # Permite la ejecución manual desde la interfaz de GitHub
jobs:
actualizar:
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*' # Utiliza la última versión estable (LTS)
- name: Install dependencies
run: npm install -g osmtogeojson #Instalación global
- name: Create working directory
run: mkdir -p /tmp/wd
- name: Change directory to wd
run: cd /tmp/wd
- name: Check out the repository
uses: actions/checkout@v3
- name: Configure git
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
- name: Run the automation script
run: bash automatizacion/consultas.sh # Correr el script de automatización
- name: Push changes
run: git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}