-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (57 loc) · 1.64 KB
/
news.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
61
62
63
64
name: Process News
on:
schedule:
- cron: "*/24 * * * *"
jobs:
pull:
runs-on: self-hosted
steps:
- name: Pull the News from the Brave Search API
run: |
curl --request POST \
--url 'https://www.tecnobuc.com/api/news/pull/brave' \
--header 'x-api-key: ${{ secrets.API_KEY }}'
parse:
runs-on: self-hosted
needs: pull
steps:
- name: Parse the News using Readability
run: |
curl --request POST \
--url 'https://www.tecnobuc.com/api/news/parse' \
--header 'x-api-key: ${{ secrets.API_KEY }}'
embed:
runs-on: self-hosted
needs: parse
steps:
- name: Generate Embedings for the News
run: |
curl --request POST \
--url 'https://www.tecnobuc.com/api/news/embed' \
--header 'x-api-key: ${{ secrets.API_KEY }}'
get_images:
runs-on: self-hosted
needs: embed
steps:
- name: Get Preview Images for the News
run: |
curl --request POST \
--url 'https://www.tecnobuc.com/api/news/get-image' \
--header 'x-api-key: ${{ secrets.API_KEY }}'
filter:
runs-on: self-hosted
needs: get_images
steps:
- name: Filter the Unrelevant News
run: |
curl --request POST \
--url 'https://www.tecnobuc.com/api/news/filter' \
--header 'x-api-key: ${{ secrets.API_KEY }}'
clean:
runs-on: self-hosted
steps:
- name: Clear the Not Generated News
run: |
curl --request POST \
--url 'https://www.tecnobuc.com/api/news/clean' \
--header 'x-api-key: ${{ secrets.API_KEY }}'