From c9cb9037845bdbd00c1fd5049a15aa0cdd9e1ce0 Mon Sep 17 00:00:00 2001 From: komeil Parseh Date: Sat, 19 Feb 2022 17:34:57 +0330 Subject: [PATCH 1/4] Set theme jekyll-theme-cayman --- _config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 _config.yml diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..c419263 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file From ffae891072ad7e19a9568b7050cfb25d2656e624 Mon Sep 17 00:00:00 2001 From: komeil Parseh Date: Sun, 20 Feb 2022 15:14:20 +0330 Subject: [PATCH 2/4] Create CODEOWNERS --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..e675472 --- /dev/null +++ b/.github/CODEOWNERS @@ -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 From 2a8761a71494af3dbec7d1ebcbca662ffbc4189d Mon Sep 17 00:00:00 2001 From: komeil Parseh Date: Tue, 29 Mar 2022 19:35:09 +0430 Subject: [PATCH 3/4] add auto gen --- auto_gen.py | 22 ++++++++++++++++++++++ x86_64/README.md | 1 - 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 auto_gen.py delete mode 100644 x86_64/README.md diff --git a/auto_gen.py b/auto_gen.py new file mode 100644 index 0000000..0478f3f --- /dev/null +++ b/auto_gen.py @@ -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) diff --git a/x86_64/README.md b/x86_64/README.md deleted file mode 100644 index d4e1748..0000000 --- a/x86_64/README.md +++ /dev/null @@ -1 +0,0 @@ -Parch packages From 851501e3bc4b5854627e700edd9666d79c961107 Mon Sep 17 00:00:00 2001 From: komeil Parseh Date: Tue, 29 Mar 2022 19:37:30 +0430 Subject: [PATCH 4/4] Create auto-gen.yml --- .github/workflows/auto-gen.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/auto-gen.yml diff --git a/.github/workflows/auto-gen.yml b/.github/workflows/auto-gen.yml new file mode 100644 index 0000000..b1a39b5 --- /dev/null +++ b/.github/workflows/auto-gen.yml @@ -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