Skip to content

Commit 86ac16c

Browse files
authored
Create main.yml
1 parent f792b04 commit 86ac16c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/main.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
schedule:
3+
- cron: '0 0 * * *'
4+
name: dailyr
5+
6+
jobs:
7+
fetch-rss:
8+
runs-on: macOS-latest
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: r-lib/actions/setup-r@v1
14+
- name: Cache R packages
15+
uses: actions/cache@v2
16+
with:
17+
path: ${{ env.R_LIBS_USER }}
18+
key: ${{ runner.os }}-R-packages
19+
- name: Fetch RSS
20+
run: |
21+
Rscript R/fetch.R
22+
- name: Push results
23+
run: |
24+
git add --all *
25+
git commit -m "Daily update"
26+
git push -q https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:master
27+

0 commit comments

Comments
 (0)