From b776580c0090b7cf40cba28d61c2412abea9d6b1 Mon Sep 17 00:00:00 2001 From: azw Date: Wed, 12 Feb 2025 17:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.gitea/workflows/gendiff.y?= =?UTF-8?q?ml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/gendiff.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/gendiff.yml diff --git a/.gitea/workflows/gendiff.yml b/.gitea/workflows/gendiff.yml new file mode 100644 index 0000000..af7b92d --- /dev/null +++ b/.gitea/workflows/gendiff.yml @@ -0,0 +1,30 @@ +name: gendiff +run-name: +on: + schedule: + - cron: '30 4 * * *' + issues: + types: [edited] + +jobs: + gendiff: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Gen Diff + run: | + bash tools/diff.sh + git config user.name test + git config user.email test@github.com + git add . + git commit --allow-empty -m "$(date '+%Y-%m-%d %H:%M:%S')" + git diff main origin/main --name-only > diff + zip -@ archive.zip < diff + - name: Upload + uses: https://gitea.com/actions/gitea-release-action@v1 + with: + files: |- + archive.zip + api_key: '${{ secrets.GITHUB_TOKEN }}' + tag_name: 'Diff' \ No newline at end of file