File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -154,22 +154,17 @@ jobs:
154154 fi
155155
156156 MESSAGE="部署状态: ${STATUS}
157- 触发方式 : ${{ steps.deploy-params.outputs.trigger_type }}
158- 部署环境 : ${{ steps.deploy-params.outputs.environment }}
159- 镜像标签 : ${{ steps.deploy-params.outputs.image_tag }}
160- 提交者 : ${{ github.actor }}
161- 时间 : $(date '+%Y-%m-%d %H:%M:%S')
162-
163- 查看详情 : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
157+ 触发方式: ${{ steps.deploy-params.outputs.trigger_type }}
158+ 部署环境: ${{ steps.deploy-params.outputs.environment }}
159+ 镜像标签: ${{ steps.deploy-params.outputs.image_tag }}
160+ 提交者: ${{ github.actor }}
161+ 时间: $(date '+%Y-%m-%d %H:%M:%S')
162+
163+ 查看详情: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
164164
165165 # 发送Server酱通知
166166 if [ -n "${{ secrets.SERVERCHAN_KEY }}" ]; then
167- cat > /tmp/serverchan.json << EOF
168- {
169- " title " : " ${TITLE}" ,
170- " desp " : " ${MESSAGE}"
171- }
172- EOF
167+ echo "{\"title\": \"${TITLE}\", \"desp\": \"${MESSAGE}\"}" > /tmp/serverchan.json
173168
174169 curl --location "https://sctapi.ftqq.com/${{ secrets.SERVERCHAN_KEY }}.send" \
175170 --header "Content-Type: application/json" \
You can’t perform that action at this time.
0 commit comments