-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (26 loc) · 997 Bytes
/
Copy pathtweet_toot.yml
File metadata and controls
32 lines (26 loc) · 997 Bytes
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
name: tweet
on:
push:
branches: ['test'] # push to this branch to test toots
# schedule:
# - cron: '41 15 * * *' # trigger at 3:41 pm UTC (8:41 AM PST)
jobs:
tweet:
runs-on: ubuntu-latest
env:
RTOOT_DEFAULT_TOKEN: ${{ secrets.RTOOT_DEFAULT_TOKEN}}
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup R
uses: r-lib/actions/setup-r@v2
- name: Install system dependencies
run: sudo apt-get install libudunits2-dev libcurl4-openssl-dev libgdal-dev
- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
- name: Create message and tweet toot
run: Rscript tweet_toot.R