Skip to content

Commit 906204c

Browse files
authored
Create downstream.yml
1 parent fd3576e commit 906204c

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/downstream.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Track Downstream Dependencies
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
schedule:
7+
- cron: "0 0 * * *" # Runs daily at midnight UTC
8+
workflow_dispatch: # Allows manual triggering
9+
10+
env:
11+
TARGET_PACKAGE: "ovos-solver-openai-persona-plugin" # Set the package to track here
12+
13+
jobs:
14+
check-dependencies:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: Download requirements file
21+
run: |
22+
curl -o constraints-alpha.txt https://raw.githubusercontent.com/OpenVoiceOS/ovos-releases/refs/heads/main/constraints-alpha.txt
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.11'
28+
29+
- name: Install Dependencies
30+
run: |
31+
sudo apt-get update
32+
sudo apt install python3-dev swig libssl-dev libfann-dev portaudio19-dev libpulse-dev python3-fann2
33+
python -m venv venv
34+
source venv/bin/activate
35+
pip install build wheel
36+
pip install -r constraints-alpha.txt
37+
pip install pipdeptree
38+
39+
- name: Find downstream dependencies
40+
run: |
41+
source venv/bin/activate
42+
pipdeptree -r -p "$TARGET_PACKAGE" > downstream_report.txt || echo "No dependencies found"
43+
44+
- name: Commit and push changes
45+
run: |
46+
git config --global user.name "github-actions[bot]"
47+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
48+
git checkout dev || git checkout -b dev
49+
git add downstream_report.txt
50+
git commit -m "Update downstream dependencies for $TARGET_PACKAGE" || echo "No changes to commit"
51+
git push origin dev

0 commit comments

Comments
 (0)