-
-
Notifications
You must be signed in to change notification settings - Fork 118
32 lines (28 loc) · 902 Bytes
/
post-ads.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
name: Post Ads
on:
workflow_dispatch:
schedule:
- cron: "00 14 1 * *"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
post-ads:
runs-on: macos-latest
strategy:
fail-fast: false
env:
TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_API_KEY_SECRET: ${{ secrets.TWITTER_API_KEY_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_SECRET: ${{ secrets.TWITTER_ACCESS_SECRET }}
RTOOT_USER: ${{ secrets.RTOOT_USER }}
RTOOT_DEFAULT_TOKEN: ${{ secrets.RTOOT_DEFAULT_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: any::rtweet, any::httpuv, github::schochastics/rtoot
- name: Post Tweet/Toot
run: Rscript .github/assets/post-ads.R