-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (36 loc) · 1.07 KB
/
update-avprs.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
name: Update avprs
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
Bullocky:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python3 -m pip install -U pip
sudo apt install jq
- name: Update Each Daemon
run: |
set +e
for d in "./daemons/"*
do
protocol=$(cat $d | jq -r .protocol)
pypi_url=$(cat $d | jq .installation.PyPI)
[ "$pypi_url" = "null" ] && continue
pypi_package=$(python -c "import os; print(list(filter(None, $pypi_url.split(os.sep)))[-1])")
echo $pypi_package $protocol
python3 -m pip install -U $pypi_package || continue
yaqd-$protocol --protocol || continue
yaqd-$protocol --protocol > $d
done
- uses: peter-evans/create-pull-request@v4
with:
title: "[bot] update avpr files"
body: "🤠"
branch: bullocky