1313 steps :
1414 -
1515 name : Private Actions Checkout
16- uses : actions/checkout@v3
16+ uses : actions/checkout@v5
1717 -
1818 name : Get Data
1919 id : time
@@ -25,21 +25,21 @@ jobs:
2525 -
2626 name : Get latest version
2727 id : current-version
28- uses : cardinalby/git-get-release-action@v1
28+ uses : cardinalby/git-get-release-action@v1.1
2929 env :
3030 GITHUB_TOKEN : ${{ secrets.TOKEN_GITHUB }}
3131 with :
3232 latest : true
3333 prerelease : false
3434 -
3535 name : Generate next version
36- uses : HardNorth/github-version-generate@v1.3.0
36+ uses : HardNorth/github-version-generate@v1.4
3737 with :
3838 version : ${{ steps.current-version.outputs.tag_name }}
3939 next-version-increment-patch : true
4040 -
4141 name : Build with xgo
42- uses : crazy-max/ghaction-xgo@v2
42+ uses : crazy-max/ghaction-xgo@v3.2.0
4343 with :
4444 xgo_version : latest
4545 go_version : ${{ matrix.go_version }}
5353 buildmode : default
5454 -
5555 name : Delete old Releases
56- uses : dev-drprasad/delete-older-releases@v0.2.0
56+ uses : dev-drprasad/delete-older-releases@v0.3.4
5757 with :
5858 repo : ${{ github.repository }}
5959 keep_latest : 3
6262 GITHUB_TOKEN : ${{ secrets.TOKEN_GITHUB }}
6363 -
6464 name : Make release
65- uses : softprops/action-gh-release@v1
65+ uses : softprops/action-gh-release@v2.3.2
6666 with :
6767 files : " bin/**"
6868 body_path : docs/README.md
7272 env :
7373 GITHUB_TOKEN : ${{ secrets.TOKEN_GITHUB }}
7474 -
75- name : Get Data
76- id : getDingData
77- run : |
78- set -ex
79- # 输出仓库名
80- REPOSITORY="${{GITHUB.REPOSITORY}}"
81- echo "REPOSITORY=${REPOSITORY#*/}" >> $GITHUB_OUTPUT
82-
83- # 获取用户仓库信息
84- # RESPONSE="$(curl -sLm 10 https://api.github.com/repos/${{ GITHUB.REPOSITORY }})"
85- # 建议填写自己的 TOKEN
86- RESPONSE="$(curl -sLm 10 https://api.github.com/repos/${{ GITHUB.REPOSITORY }} -H "Authorization: token ${{ SECRETS.TOKEN_GITHUB }}")"
87-
88- # 获取 用户仓库 设置的 描述,如果为空,可能是没有使用 TOKEN
89- DESCRIPTION="$(jq -r .description <(echo ${RESPONSE}))"
90- echo "DESCRIPTION=${DESCRIPTION}" >> $GITHUB_OUTPUT
91-
92- # 获取 用户仓库 设置的 URL, 如果没有就输出 Github 地址
93- URL="$(jq -r .homepage <(echo ${RESPONSE}))"
94- if [[ "${URL}" == "null" || "${URL}" == "" ]]; then
95- echo "URL=${{ GITHUB.SERVER_URL }}/${{ GITHUB.REPOSITORY }}" >> $GITHUB_OUTPUT
96- else
97- echo "URL=${URL}" >> $GITHUB_OUTPUT
98- fi
99- -
100- name : Send dingding notify
101- uses : zcong1993/actions-ding@master
75+ name : Send notification to Feishu
76+ uses : XRSec/feishu-bot-webhook-action@v1
10277 with :
103- dingToken : ${{ SECRETS.DING_TOKEN }}
104- secret : ${{ SECRETS.DING_SECRET }}
105- body : |
106- {
107- "msgtype": "link",
108- "link": {
109- "text": "${{ steps.getDingData.outputs.DESCRIPTION }}",
110- "title": "${{ steps.getDingData.outputs.REPOSITORY }} WorkFlow ${{ GITHUB.JOB }} Success!",
111- "picUrl": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png",
112- "messageUrl": "${{ steps.getDingData.outputs.URL }}"
113- }
114- }
78+ FEISHU_BOT_WEBHOOK : ${{ secrets.FEISHU_BOT_WEBHOOK }}
79+ FEISHU_BOT_SIGNKEY : ${{ secrets.FEISHU_BOT_SIGNKEY }}
0 commit comments