From d8f4613fdcd46042cfbac3b149bbe0f94da7ea61 Mon Sep 17 00:00:00 2001 From: JinnLynn Date: Thu, 6 Jun 2024 11:09:06 +0800 Subject: [PATCH] feat(action): add cook --- .github/workflows/cook.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/cook.yml diff --git a/.github/workflows/cook.yml b/.github/workflows/cook.yml new file mode 100644 index 00000000..7aa183d1 --- /dev/null +++ b/.github/workflows/cook.yml @@ -0,0 +1,35 @@ +name: cook +on: + workflow_dispatch: + push: + schedule: + - cron: "0 */12 * * *" + +jobs: + generate: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout Branch dev + uses: actions/checkout@v4 + with: + ref: dev + path: dev + - name: Checkout Branch cooked + uses: actions/checkout@v4 + with: + ref: cooked + path: cooked + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - run: | + pip install ./dev/ && \ + DEST=./cooked genpac --config=./dev/example/config.ini + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + repository: ./cooked + commit_message: Automated Change + push_options: '--force'