From 48aa309ec323e40a285906dd32b8525c5327bf7c Mon Sep 17 00:00:00 2001 From: zhiyi Date: Thu, 3 Oct 2024 17:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=94=B9=20workflows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/auto-release.yml | 10 +++------- .github/workflows/auto-update-gfw-pac.yml | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 2f903b9..82df089 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -23,7 +23,7 @@ jobs: git config --global user.name "GitHub Actions" git config --global user.email "actions@github.com" - - name: Get commit count for today + - name: Generate Release Name id: commit_count env: GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }} @@ -49,11 +49,7 @@ jobs: with: tag_name: "${{ env.RELEASE_NAME }}" name: "${{ env.RELEASE_NAME }}" - body: "Automatically generated release for pac file update" + body: "$(git log -1 --pretty=%B)" draft: false prerelease: false - files: gfw.pac - - - name: Verify Release - run: | - echo "Release created with name ${{ env.RELEASE_NAME }}" \ No newline at end of file + files: gfw.pac \ No newline at end of file diff --git a/.github/workflows/auto-update-gfw-pac.yml b/.github/workflows/auto-update-gfw-pac.yml index e5066c4..694e6dc 100644 --- a/.github/workflows/auto-update-gfw-pac.yml +++ b/.github/workflows/auto-update-gfw-pac.yml @@ -27,7 +27,7 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add . - git commit -a -m "自动更新 gfw.pac" + git commit -a -m "自动更新 cidrs-cn.txt 和 gfw.pac" - name: Push changes uses: ad-m/github-push-action@master