forked from wslyvh/useWeb3
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 832 Bytes
/
last-week.yml
File metadata and controls
28 lines (26 loc) · 832 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
name: Last week
on:
schedule:
- cron: "0 14 * * 5"
workflow_dispatch:
jobs:
build:
name: Tweet about last week
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install Dependencies
run: yarn install
- name: Run Twitter bot
run: yarn twitter:last-week
env:
PLAUSIBLE_API_KEY: ${{ secrets.PLAUSIBLE_API_KEY }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}