Skip to content

Commit 1dce7be

Browse files
authored
Merge pull request #81 from ks6088ts-labs/feature/issue-80_news-summarizer-agent
add post_summary_to_slack workflow
2 parents ff6e25c + 487cf3f commit 1dce7be

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: post_summary_to_slack
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
text:
7+
type: string
8+
default: "https://example.com,https://www.youtube.com/watch?v=xxx"
9+
required: true
10+
description: "Comma-separated list of URLs to summarize"
11+
scraper_type:
12+
type: choice
13+
options:
14+
- mock
15+
- httpx
16+
- youtube_transcript
17+
default: mock
18+
required: true
19+
description: "Scraper implementation"
20+
summarizer_type:
21+
type: choice
22+
options:
23+
- mock
24+
- llm
25+
default: mock
26+
required: true
27+
description: "Summarizer implementation"
28+
notifier_type:
29+
type: choice
30+
options:
31+
- mock
32+
- slack
33+
default: mock
34+
required: true
35+
description: "Notifier implementation"
36+
37+
env:
38+
SCRAPER_TYPE: ${{ inputs.scraper_type }}
39+
SUMMARIZER_TYPE: ${{ inputs.summarizer_type }}
40+
NOTIFIER_TYPE: ${{ inputs.notifier_type }}
41+
AZURE_OPENAI_ENDPOINT: ${{ secrets.AZURE_OPENAI_ENDPOINT }}
42+
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}
43+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
44+
45+
jobs:
46+
post_summary_to_slack:
47+
runs-on: "ubuntu-latest"
48+
timeout-minutes: 5
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Set up uv
52+
shell: bash
53+
run: pipx install uv
54+
- name: Set up Python 3.13
55+
uses: actions/setup-python@v5
56+
with:
57+
python-version: 3.13
58+
- name: Running NewsSummarizerAgent with scraper ${{ env.SCRAPER_TYPE }}, summarizer ${{ env.SUMMARIZER_TYPE }}, notifier ${{ env.NOTIFIER_TYPE }}
59+
shell: bash
60+
run: |
61+
make install-deps
62+
uv run python scripts/agent_operator.py news-summarizer-agent --urls "${{ inputs.text }}"

0 commit comments

Comments
 (0)