-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.44 KB
/
bot.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
40
41
42
name: narrowbotR
on:
schedule:
- cron: '19 8-20/4 * * *'
jobs:
narrowbotR-post:
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 }}
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
- name: Commit log
run: |
git config --local user.name actions-user
git config --local user.email "[email protected]"
git add narrowbotr.log
git commit -m "squash! AUTOBOTLOG"
git push origin main
env:
REPO_KEY: ${{secrets.GITHUB_TOKEN}}
username: github-actions