-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.22 KB
/
run.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: twitter-dev-bot-post
on:
workflow_dispatch:
schedule:
- cron: '15 * * * *'
jobs:
twitter-dev-bot-post:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install curl
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.19.2'
- uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2
- name: Scrape, format and post
env:
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_SECRET: ${{ secrets.TWITTER_API_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}
TWITTER_CLIENT_ID: ${{ secrets.TWITTER_CLIENT_ID }}
TWITTER_CLIENT_SECRET: ${{ secrets.TWITTER_CLIENT_SECRET }}
ENCRYPTION_KEY: ${{ secrets.ENCRYPTION_KEY }}
run: Rscript run.R
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'Refresh NEWS files'