-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (37 loc) · 1.2 KB
/
bot_check.yaml
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
name: check-narrowbotR
on:
push:
branches:
- main
paths:
- 'narrowbot.R'
- 'R/**'
- 'data/**'
workflow_dispatch:
jobs:
check-narrowbotR:
runs-on: ubuntu-latest
env:
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }}
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 }}
MAPBOX_PAT: ${{ secrets.MAPBOX_PAT }}
MASTODON_TOKEN: ${{ secrets.MASTODON_TOKEN }}
BLUESKY_APP_USER: ${{ secrets.BLUESKY_APP_USER }}
BLUESKY_APP_PASS: ${{ secrets.BLUESKY_APP_PASS }}
NARROWBOT_TEST: "true"
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install cURL Headers
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
- name: Install packages
run: Rscript -e 'source("R/pkg_install.R")' -e 'install_packages()'
- name: Cruise the canals
run: Rscript narrowbot.R