-
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (58 loc) · 1.78 KB
/
itunderhood.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: 'daily 👩💻 itunderhood'
on:
# schedule:
# - cron: '0 1 * * *'
workflow_dispatch:
inputs:
first_tweet:
description: 'From tweet override (URL, will be included)'
default: ''
required: false
last_tweet:
description: 'Until tweet override (URL, will not be included)'
default: ''
required: false
username:
description: 'Author username override'
default: ''
required: false
name:
description: 'Author name override'
default: ''
required: false
avatar:
description: 'Avatar override'
default: ''
required: false
jobs:
dump:
runs-on: ubuntu-latest
container:
image: ghcr.io/tiulpin/underhood
env:
FIRST_TWEET: ${{ github.event.inputs.first_tweet }}
LAST_TWEET: ${{ github.event.inputs.last_tweet }}
AVATAR: ${{ github.event.inputs.avatar }}
NAME: ${{ github.event.inputs.name }}
USERNAME: ${{ github.event.inputs.username }}
TWITTER_TOKEN: ${{ secrets.TWITTER_TOKEN }}
NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
IMGUR_API_ID: ${{ secrets.IMGUR_API_ID }}
IMGUR_API_SECRET: ${{ secrets.IMGUR_API_SECRET }}
UNDERHOOD: itunderhood
steps:
- name: Pull latest repository
uses: actions/checkout@v2
with:
repository: tiulpin/itunderhood
path: ./itunderhood
token: ${{ secrets.ACCESS_TOKEN }}
- run: underhood dump
- name: Push latest URLs
uses: actions-js/push@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
branch: main
directory: itunderhood
repository: tiulpin/itunderhood