From 58241b62165e70cc7a3ad10bfac5bfb38ac3ea6a Mon Sep 17 00:00:00 2001 From: golf66 <69233028+hudeng-go@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:11:24 +0800 Subject: [PATCH] fix: auto tag get email failed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced action to get email from GitHub username with a script that reads email from debian/changelog. 原因为github 获取email的api接口目前不可用。 --- .github/workflows/auto-tag.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 161968a9c..71509114c 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -121,10 +121,9 @@ jobs: - name: get email if: github.event.pull_request.merged id: get-email - uses: evvanErb/get-github-email-by-username-action@v2.0 - with: - github-username: '${{ github.event.pull_request.user.login }}' - token: '${{ steps.get-token.outputs.app_token }}' + run: | + echo "read email from debian/changelog" + echo "email=$(grep -m1 '^ -- ' debian/changelog | sed 's/.*<\([^>]*\)>.*/\1/')" >> $GITHUB_OUTPUT - name: Create tag if: github.event.pull_request.merged