ci(deploy): 使用变量替换密钥并移除调试步骤
All checks were successful
deploy & notify / build (push) Successful in 11s

This commit is contained in:
xiaofangqing
2026-03-20 10:21:58 +08:00
parent 8b7b90de6a
commit 15d7da3c0b

View File

@@ -1,4 +1,4 @@
name: deploy & notify name: "deploy & notify"
on: on:
push: push:
@@ -24,18 +24,10 @@ jobs:
START_TIME=$(TZ='Asia/Shanghai' date '+%Y-%m-%d %H:%M:%S') START_TIME=$(TZ='Asia/Shanghai' date '+%Y-%m-%d %H:%M:%S')
echo "START_TIME=$START_TIME" >> $GITHUB_ENV echo "START_TIME=$START_TIME" >> $GITHUB_ENV
- name: debug wecom contexts
env:
SECRET_WECOM_WEBHOOK: ${{ secrets.WECOM_WEBHOOK_KEY }}
VAR_WECOM_WEBHOOK: ${{ vars.WECOM_WEBHOOK_KEY }}
run: |
printf 'SECRET_WECOM_WEBHOOK=<%s>\n' "$SECRET_WECOM_WEBHOOK"
printf 'VAR_WECOM_WEBHOOK=<%s>\n' "$VAR_WECOM_WEBHOOK"
- name: 通知-构建开始 - name: 通知-构建开始
uses: https://gitea.com/seepine/action-wechat-work.git@1.0.8 uses: https://gitea.com/seepine/action-wechat-work.git@1.0.8
env: env:
WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECOM_WEBHOOK_KEY }} WECHAT_WORK_BOT_WEBHOOK: ${{ vars.WECOM_WEBHOOK_KEY }}
with: with:
msgtype: template_card msgtype: template_card
template_card: | template_card: |
@@ -97,7 +89,7 @@ jobs:
if: ${{ success() }} if: ${{ success() }}
uses: https://gitea.com/seepine/action-wechat-work.git@1.0.8 uses: https://gitea.com/seepine/action-wechat-work.git@1.0.8
env: env:
WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECOM_WEBHOOK_KEY }} WECHAT_WORK_BOT_WEBHOOK: ${{ vars.WECOM_WEBHOOK_KEY }}
with: with:
msgtype: template_card msgtype: template_card
template_card: | template_card: |
@@ -142,7 +134,7 @@ jobs:
if: ${{ failure() }} if: ${{ failure() }}
uses: https://gitea.com/seepine/action-wechat-work.git@1.0.8 uses: https://gitea.com/seepine/action-wechat-work.git@1.0.8
env: env:
WECHAT_WORK_BOT_WEBHOOK: ${{ secrets.WECOM_WEBHOOK_KEY }} WECHAT_WORK_BOT_WEBHOOK: ${{ vars.WECOM_WEBHOOK_KEY }}
with: with:
msgtype: template_card msgtype: template_card
template_card: | template_card: |