Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
parent
51f4d198e9
commit
ba1f0284c3
@ -1,33 +0,0 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.20.1"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt update -y
|
||||
sudo apt install -y python3 python3-build python3-requests make
|
||||
|
||||
- name: Build wheel package
|
||||
run: make
|
||||
|
||||
- name: Create a release
|
||||
uses: "https://gitea.com/actions/release-action@main"
|
||||
with:
|
||||
files: |-
|
||||
dist/**
|
||||
api_key: ${{secrets.REPO_TOKEN}}
|
34
README.md
34
README.md
@ -1,7 +1,6 @@
|
||||
# ups | upstream scripts
|
||||
|
||||

|
||||

|
||||
|
||||
collection of bash and python scripts for pulling and managing patches from the
|
||||
upstream git repos of my personal forks
|
||||
@ -95,3 +94,36 @@ paths of the patches:
|
||||
]
|
||||
...
|
||||
```
|
||||
|
||||
### workflow
|
||||
|
||||
here's an example gitea workflow action to run ups every week and check for any
|
||||
upstream updates:
|
||||
|
||||
```yaml
|
||||
name: ups
|
||||
|
||||
on:
|
||||
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 python3 python3-build python3-requests make
|
||||
|
||||
- name: Install ups
|
||||
run: |
|
||||
git clone https://git.ngn.tf/ngn/ups && cd ups
|
||||
make && make install
|
||||
|
||||
- name: Run ups
|
||||
run: PATH=~/.local/bin:$PATH ups-check
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user