Release v1.6.2 测试生成readme.md
All checks were successful
自动版本发布 / AutoRelease (push) Successful in 7s
All checks were successful
自动版本发布 / AutoRelease (push) Successful in 7s
This commit is contained in:
parent
9e763452b2
commit
56c8139347
@ -23,14 +23,17 @@ jobs:
|
|||||||
- name: 设置环境变量
|
- name: 设置环境变量
|
||||||
id: ActionEnv
|
id: ActionEnv
|
||||||
run: |
|
run: |
|
||||||
|
# 正确的变量赋值
|
||||||
UserName="${{ github.actor }}"
|
UserName="${{ github.actor }}"
|
||||||
UserEmail=$(git log -1 --pretty=format:'%ae')
|
UserEmail=$(git log -1 --pretty=format:'%ae')
|
||||||
GitRepo="${{ github.repository }}"
|
GitRepo="${{ github.repository }}"
|
||||||
ServerUrl="${{ github.server_url }}"
|
ServerUrl="${{ github.server_url }}"
|
||||||
|
|
||||||
|
# 将变量设置为步骤输出
|
||||||
echo "ENV_USER_NAME=$UserName" >> $GITHUB_OUTPUT
|
echo "ENV_USER_NAME=$UserName" >> $GITHUB_OUTPUT
|
||||||
echo "ENV_USER_EMAIL=$UserEmail" >> $GITHUB_OUTPUT
|
echo "ENV_USER_EMAIL=$UserEmail" >> $GITHUB_OUTPUT
|
||||||
echo "ENV_REPO_NAME=$GitRepo" >> $GITHUB_OUTPUT
|
echo "ENV_REPO_NAME=$GitRepo" >> $GITHUB_OUTPUT
|
||||||
echo "ENV_SERVER_UEL = $ServerUrl" >> $GITHUB_OUTPUT
|
echo "ENV_SERVER_URL=$ServerUrl" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: 检查环境变量
|
- name: 检查环境变量
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user