-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (55 loc) · 2.05 KB
/
orbit.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
name: Check for New Interactions and Add to Orbit
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
env:
ORBIT_API_KEY: ${{ secrets.ORBIT_API_KEY}}
ORBIT_WORKSPACE_ID: ${{ secrets.ORBIT_WORKSPACE_ID}}
jobs:
product_hunt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: '14'
- run: npx @orbit-love/producthunt --votes --comments --id 163152
name: 'Get PactFlow Votes & Add to Orbit'
env:
PRODUCT_HUNT_API_KEY: ${{ secrets.PRODUCT_HUNT_API_KEY}}
PRODUCT_HUNT_API_SECRET: ${{ secrets.PRODUCT_HUNT_API_SECRET}}
stack_overflow:
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- pact
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: '14'
- name: Get Questions & Add to Orbit
run: npx @orbit-love/stackoverflow --questions --hours=24 --tag="${{matrix.tag}}"
- name: Get Answers & Add to Orbit
run: npx @orbit-love/stackoverflow --answers --hours=24 --tag="${{matrix.tag}}"
- name: Get Answered Questions & Add to Orbit
run: npx @orbit-love/stackoverflow --questions --answers --hours=24 --tag="${{matrix.tag}}"
env:
STACK_APPS_KEY: ${{ secrets.STACK_APPS_KEY }}
youtube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Use Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: '14'
- name: Get Comments & Add to Orbit
run: npx @orbit-love/youtube --comments --hours=24
env:
YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }}
YOUTUBE_CHANNEL_ID: ${{ secrets.YOUTUBE_CHANNEL_ID }}