From fae93cacc381ddb146fffea5fbae5f6d8e82d046 Mon Sep 17 00:00:00 2001 From: auh <21078607+fanlushuai@users.noreply.github.com> Date: Thu, 23 Mar 2023 03:48:48 +0800 Subject: [PATCH] feat:add push dist files to repo --- .github/workflows/build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 672fc6a..9a7e44a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,3 +27,14 @@ jobs: tag_name: ${{ steps.release-info.outputs.tag_name }} body_path: ${{ steps.release-info.outputs.body_path }} files: 'dist/*' + - uses: petronny/git-config-user@master + with: + path: . + - name: Push dist files + run: | + set -x + sed -i '/TIME/d' dist/*.txt # 剔除日期变更,忽略仅仅因为日期变更而出现的提交 + git add -f -A dist/*.txt + git commit -m "[$(LANG=C date)] auto update" || exit 0 + [ -n "${{ secrets.READ_ONLY }}" ] && git show && exit 0 + git push origin master