Skip to content

Commit 65d2c49

Browse files
hudeng-gomyml
authored andcommitted
fix: auto tag get email failed
Replaced action to get email from GitHub username with a script that reads email from debian/changelog. 原因为github 获取email的api接口目前不可用。
1 parent 004f7ce commit 65d2c49

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/auto-tag.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ jobs:
121121
- name: get email
122122
if: github.event.pull_request.merged
123123
id: get-email
124-
uses: evvanErb/get-github-email-by-username-action@v2.0
125-
with:
126-
github-username: '${{ github.event.pull_request.user.login }}'
127-
token: '${{ steps.get-token.outputs.app_token }}'
124+
run: |
125+
echo "read email from debian/changelog"
126+
echo "email=$(grep -m1 '^ -- ' debian/changelog | sed 's/.*<\([^>]*\)>.*/\1/')" >> $GITHUB_OUTPUT
128127
129128
- name: Create tag
130129
if: github.event.pull_request.merged

0 commit comments

Comments
 (0)