-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (42 loc) · 1.29 KB
/
action.yml
File metadata and controls
50 lines (42 loc) · 1.29 KB
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
name: "TrafficBot Pro"
description: "Multi-city automated traffic alerts to Microsoft Teams using GitHub Actions."
author: "Ramesh0708"
branding:
icon: traffic-light
color: red
inputs:
city:
description: "City to fetch traffic updates for (e.g., Pune, Mumbai, Bangalore)"
required: false
default: "Pune"
teams_webhook_url:
description: "Microsoft Teams Incoming Webhook URL"
required: true
enable_creator_spotlight:
description: "Promote your YouTube channel (yes/no)"
required: false
default: "no"
youtube_link:
description: "Link to your YouTube channel"
required: false
default: "https://youtube.com/@rawbyshivam"
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r $GITHUB_ACTION_PATH/requirements.txt
shell: bash
- name: Run TrafficBot Pro
run: |
CITY="${{ inputs.city }}" \
TEAMS_WEBHOOK_URL="${{ inputs.teams_webhook_url }}" \
CREATOR_SPOTLIGHT="${{ inputs.enable_creator_spotlight }}" \
YOUTUBE_LINK="${{ inputs.youtube_link }}" \
python $GITHUB_ACTION_PATH/trafficbot_pro.py
shell: bash