-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 947 Bytes
/
workflow.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: Take a snapshot of budget data
on:
# Run every day at 12am
schedule:
- cron: "0 0 * * *"
# workflow_dispatch:
jobs:
generate-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
- name: set env
run: |
echo "PA_TOKEN=${{ secrets.PA_TOKEN }}" >> $GITHUB_ENV
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
- uses: r-lib/actions/setup-pandoc@v2
- name: Run budget data script
run: |
source("iati_marker.R")
shell: Rscript {0}
- name: Commit new file
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add --all
git commit -am "add data"
git push