-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.1 KB
/
save-data-csv-only.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
name: Save CSV
on:
workflow_dispatch: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
schedule: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '26 17 * * *'
jobs:
click-here-to-save-csv:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: coursier/cache-action@v6
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- name: Read from JSON and save it as CSV
run: sbt "runMain com.github.polomarcus.main.SaveCSV"
- name: Organize data
run: |
ls -R data-news-gargantext-tsv/
- name: Git push csv data
run: | # @TODO - save only current year of data | @see "save-data.yml"
git config user.name polomarcus-github-actions
git config user.email [email protected]
git status
git add .
git commit -m "ci(csv): updated files"
git push origin main