From dd918cb274488a07547e6f39b7524e20bebd8db1 Mon Sep 17 00:00:00 2001 From: azw Date: Tue, 26 Nov 2024 06:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=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 | 40 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/gendiff.yml b/.gitea/workflows/gendiff.yml index 481d0f4..c1467a8 100644 --- a/.gitea/workflows/gendiff.yml +++ b/.gitea/workflows/gendiff.yml @@ -9,23 +9,23 @@ jobs: build: 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 - sed -i 's/src\/common\/units\/names_ships\/CHI_ship_names.txt//g' diff - sed -i 's/src\/common\/on_actions\/00_navy_rework.txt//g' diff - zip archive.zip $(sed '/^$/d' 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 + - 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 + sed -i 's/src\/common\/units\/names_ships\/CHI_ship_names.txt//g' diff + sed -i 's/src\/common\/on_actions\/00_navy_rework.txt//g' diff + zip archive.zip $(sed '/^$/d' 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