From 7b4774e1bfd2d5b59a1b63d418ae2af7fac80b44 Mon Sep 17 00:00:00 2001 From: komeil Parseh Date: Tue, 12 Apr 2022 22:56:15 +0430 Subject: [PATCH] add tools from ppr --- .github/CODEOWNERS | 3 +++ .github/workflows/auto-gen.yml | 33 +++++++++++++++++++++++++++++++++ repoadd.sh | 14 ++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/auto-gen.yml create mode 100755 repoadd.sh 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 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 diff --git a/repoadd.sh b/repoadd.sh new file mode 100755 index 0000000..24be3ac --- /dev/null +++ b/repoadd.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#set -x + +if [ "$1" == "" ];then + echo "repoadd.sh " + exit 1 +fi + +cd x86_64 +repo-add $1.db.tar.gz *pkg.tar.zst + +mv $1.files.tar.gz ppr.files +mv $1.db.tar.gz ppr.db