From 517b6f8910afa3379e1a56e79a25fbe5cefd527e Mon Sep 17 00:00:00 2001 From: q Date: Thu, 10 Jul 2025 19:07:02 +0800 Subject: [PATCH] del --- .github/workflows/update-release-badge.yml | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/update-release-badge.yml diff --git a/.github/workflows/update-release-badge.yml b/.github/workflows/update-release-badge.yml deleted file mode 100644 index da270b5..0000000 --- a/.github/workflows/update-release-badge.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Update Release Badge - -on: - push: - tags: - - 'v*' # 可按需调整 - -jobs: - update-badge: - runs-on: ubuntu-latest - - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Get latest tag - id: get_tag - run: echo "tag_name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - - - name: Update README badge - run: | - TAG=${{ steps.get_tag.outputs.tag_name }} - BADGE="https://img.shields.io/github/actions/workflow/status/qaiu/netdisk-fast-download/maven.yml?branch=$TAG" - echo "Using badge: $BADGE" - - # 替换 README 中 badge 行(标记行需特殊注释) - sed -i -E "s#(!\[release-badge\]\(.*\))#![release-badge]($BADGE)#" README.md - - - name: Commit and push - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git commit -am "🔄 update release badge for ${{ steps.get_tag.outputs.tag_name }}" || echo "No changes" - git push