Skip to content

Commit 7bdc119

Browse files
committed
增加自动部署
1 parent e1bd010 commit 7bdc119

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/deploy-master.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff 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" \

0 commit comments

Comments
 (0)