From fe7f75fa0da236f63276fb8f7dd89709e7e18c74 Mon Sep 17 00:00:00 2001 From: xunpod Date: Mon, 17 Jun 2024 16:10:02 +0800 Subject: [PATCH] ci: optimizing workflow processes - remove star - add update log --- .github/workflows/auto-update.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index b91f7ec..254e8c8 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -7,8 +7,6 @@ on: push: branches: - "spider" - watch: - types: started schedule: - cron: '0 0 */1 * *' permissions: @@ -34,10 +32,12 @@ jobs: - name: Commit and push changes id: commit run: | + echo -e "龙芯应用合作社有应用更新啦!\n " > updatelog.txt + awk -F, '{print "-", $1, $2, $4}' loongapplist-upgrade.csv >> updatelog.txt git config --global user.name "Github Action" git config --global user.email "Action@github.com" git add loongapplist-latest.csv - git commit -m "auto update" -a && git push && echo "A=1" >> $GITHUB_ENV || echo "no updates" + git commit -F updatelog.txt && git push && echo "A=1" >> $GITHUB_ENV || echo "no updates" - name: Set date env run: | cp loongapplist-latest.csv loongapplist-latest-$(date '+%Y-%m-%d').csv @@ -63,6 +63,7 @@ jobs: ${{ env.UPGRADE }} tag_name: ${{ env.TODAY }} name: ${{ env.TODAY }} + body_path: updatelog.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Update latest Release @@ -77,5 +78,6 @@ jobs: loongapplist-upgrade.csv tag_name: latest name: Latest + body_path: updatelog.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}