Some checks failed
ups / ups (push) Failing after 20s
Signed-off-by: ngn <ngn@ngn.tf>
30 lines
772 B
YAML
30 lines
772 B
YAML
name: ups
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "custom"
|
|
schedule:
|
|
- cron: "@weekly"
|
|
|
|
jobs:
|
|
ups:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt update -y
|
|
sudo apt install -y curl jq python3 python3-requests
|
|
|
|
- name: Install ups
|
|
run: |
|
|
version=$(curl -s 'https://git.ngn.tf/api/v1/repos/ngn/ups/releases/latest' | jq -r .tag_name)
|
|
wget "https://git.ngn.tf/ngn/ups/releases/download/${version}/ups-${version}-py3-none-any.whl"
|
|
pip3 install --force-reinstall --break-system-packages "ups-${version}-py3-none-any.whl"
|
|
|
|
- name: Run ups
|
|
run: PATH=~/.local/bin:$PATH ups-check
|