Merge branch 'main' of https://github.com/parch-os/parch_repo
This commit is contained in:
commit
e3ccd1655f
5 changed files with 59 additions and 1 deletions
3
.github/CODEOWNERS
vendored
Normal file
3
.github/CODEOWNERS
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# As per https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#example-of-a-codeowners-file
|
||||||
|
|
||||||
|
* @bsslinux @mmdbalkhi
|
33
.github/workflows/auto-gen.yml
vendored
Normal file
33
.github/workflows/auto-gen.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
name: Auto-gen
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'IRIP/img/*/*'
|
||||||
|
- 'auto-gen.py'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- '*.tar.zst'
|
||||||
|
- 'auto_gen.py'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
add-actions:
|
||||||
|
name: gen-readme
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- run: git config --global user.name "readme-gen"
|
||||||
|
- run: git config --global user.email "<>"
|
||||||
|
- run: python auto-gen.py
|
||||||
|
- run: git add README.md
|
||||||
|
- run: git commit -m "auto generate README.md" || echo "nothing to commit, working tree clean"; exit 0
|
||||||
|
- run: git push
|
1
_config.yml
Normal file
1
_config.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
theme: jekyll-theme-cayman
|
22
auto_gen.py
Normal file
22
auto_gen.py
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
archs = ("x86_64",)
|
||||||
|
base_text = """# Parch_os repo
|
||||||
|
|
||||||
|
"""
|
||||||
|
base_url = "https://github.com/parch-os/parch_repo/raw/main/{arch}/{package}"
|
||||||
|
|
||||||
|
for arch in archs:
|
||||||
|
packages = os.listdir(arch)
|
||||||
|
packages.sort()
|
||||||
|
for package in packages:
|
||||||
|
base_text += (
|
||||||
|
"[{}]".format(package.split(".")[0])
|
||||||
|
+ "("
|
||||||
|
+ base_url.format(arch=arch, package=package)
|
||||||
|
+ ")"
|
||||||
|
+ "\n"
|
||||||
|
)
|
||||||
|
|
||||||
|
with open("README.md", "w") as f:
|
||||||
|
f.write(base_text)
|
|
@ -1 +0,0 @@
|
||||||
Parch packages
|
|
Loading…
Add table
Reference in a new issue