From 851501e3bc4b5854627e700edd9666d79c961107 Mon Sep 17 00:00:00 2001 From: komeil Parseh Date: Tue, 29 Mar 2022 19:37:30 +0430 Subject: [PATCH] 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