-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 998 Bytes
/
cron.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
43
44
45
46
47
name: Generar WordCloud Diario
on:
schedule:
- cron: '3 3 * * *'
jobs:
generate_wordcloud:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout código
uses: actions/checkout@v2
- name: Configurar Git
run: |
git config --global user.email "gaspargomez2000@outlook.com"
git config --global user.name "ggomez0"
- name: Configurar Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Instalar dependencias
run: |
pip install beautifulsoup4 requests nltk wordcloud matplotlib
- name: Instalar nltk
run: |
python mynltk.py
- name: Ejecutar tarea de generación de WordCloud
run: |
python wordcloudgenerator.py
- name: Subir WordCloud generada
run: |
git checkout main
git add .
git commit -m "WordCloud generado diario"
git push origin main