-
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (52 loc) · 1.86 KB
/
example.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
48
49
50
51
52
53
54
55
name: Test run
on:
schedule:
- cron: '55 23 * * *'
workflow_dispatch:
jobs:
export-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./.
with:
netlify-token: ${{ secrets.NETLIFY_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE }}
- uses: actions/upload-artifact@v2
with:
name: exports
path: '*.csv'
sheet-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./. # Replace with niklasmerz/[email protected] in your repo
with:
netlify-token: ${{ secrets.NETLIFY_TOKEN }}
netlify-site-id: ${{ secrets.NETLIFY_SITE }}
days: -1
disable-header: true
- uses: niklasmerz/csv-to-google-spreadsheet@master
with:
csv_path: pageviews.csv
spreadsheet_id: ${{ secrets.google_spreadsheet_id }}
worksheet: 0
append_content: true
google_service_account_email: ${{ secrets.google_service_account_email }}
google_service_account_private_key: ${{ secrets.google_service_account_private_key }}
- uses: niklasmerz/csv-to-google-spreadsheet@master
with:
csv_path: visitors.csv
spreadsheet_id: ${{ secrets.google_spreadsheet_id }}
worksheet: 1
append_content: true
google_service_account_email: ${{ secrets.google_service_account_email }}
google_service_account_private_key: ${{ secrets.google_service_account_private_key }}
- uses: niklasmerz/csv-to-google-spreadsheet@master
with:
csv_path: bandwidth.csv
spreadsheet_id: ${{ secrets.google_spreadsheet_id }}
worksheet: 2
append_content: true
google_service_account_email: ${{ secrets.google_service_account_email }}
google_service_account_private_key: ${{ secrets.google_service_account_private_key }}