File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 11on :
22 issues :
33 types : [opened]
4-
4+ workflow_dispatch :
5+ inputs :
6+ wzl_comment :
7+ description : " Custom comment message (leave blank or 'false' to use default)"
8+ required : false
9+ default : " false"
10+
511jobs :
612 thank-user :
713 runs-on : ubuntu-20.04
814 name : Say thanks for the Issue
915 steps :
16+ - name : Set comment message
17+ id : set-message
18+ run : |
19+ # 获取 wzl_comment,自动触发时为空
20+ WZL_COMMENT="${{ github.event.inputs.wzl_comment }}"
21+ if [ -z "$WZL_COMMENT" ] || [ "$WZL_COMMENT" = "false" ]; then
22+ echo "message=Thank you for opening this issue, we will look into it." >> $GITHUB_OUTPUT
23+ else
24+ echo "message=$WZL_COMMENT" >> $GITHUB_OUTPUT
25+ fi
1026 - name : comment on the issue
11271228 with :
1329 github-token : ${{ secrets.WANGZELIN_TOKEN }}
1430 repository : ' wangzelin007/github-bot-dev'
1531 number : ${{ github.event.issue.number }}
1632 id : thank-you-comment
17- message : ' Thank you for opening this issue, we will look into it. '
33+ message : ${{ steps.set-message.outputs.message }}
You can’t perform that action at this time.
0 commit comments