-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1 KB
/
main.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
33
34
35
36
37
38
39
40
41
42
43
name: Main
on:
schedule:
- cron: '43 5 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install dependencies
run: |
gem install twurl
npm -g install [email protected]
- name: Init twurl
run: ./scripts/init-twurl.sh
env:
TWITTER_USERNAME: eastleighmp
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }}
TWITTER_SECRET: ${{ secrets.TWITTER_SECRET }}
- name: Mirror tweets
run: ./scripts/mirror-tweets.sh
env:
FROM: pauljholmes
SINCE: ${{ vars.SINCE }}
UNTIL: ${{ vars.UNTIL }}
MIRROR_MODE: ${{ vars.MIRROR_MODE }}