From 9e2304ee83296341d88adef3830ef80540e741f2 Mon Sep 17 00:00:00 2001 From: DoveBoy <393366046@qq.com> Date: Thu, 22 Apr 2021 14:30:02 +0800 Subject: [PATCH 1/2] SCF add JDHEALTH_SHARECODES secret --- .github/workflows/deploy_tencent_scf.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy_tencent_scf.yml b/.github/workflows/deploy_tencent_scf.yml index be448305..4995cc6e 100644 --- a/.github/workflows/deploy_tencent_scf.yml +++ b/.github/workflows/deploy_tencent_scf.yml @@ -41,6 +41,7 @@ jobs: JXNC_SHARECODES: ${{ secrets.JXNC_SHARECODES}} JDSGMH_SHARECODES: ${{ secrets.JDSGMH_SHARECODES}} JDCFD_SHARECODES: ${{ secrets.JDCFD_SHARECODES}} + JDHEALTH_SHARECODES: ${{ secrets.JDHEALTH_SHARECODES}} JD_BEAN_STOP: ${{ secrets.JD_BEAN_STOP}} JD_BEAN_SIGN_STOP_NOTIFY: ${{ secrets.JD_BEAN_SIGN_STOP_NOTIFY}} JD_BEAN_SIGN_NOTIFY_SIMPLE: ${{ secrets.JD_BEAN_SIGN_NOTIFY_SIMPLE}} @@ -128,6 +129,7 @@ jobs: if [ $JXNC_SHARECODES ]; then sed -i "/variables/a\ JXNC_SHARECODES: $JXNC_SHARECODES" serverless.yml; fi; if [ $JDSGMH_SHARECODES ]; then sed -i "/variables/a\ JDSGMH_SHARECODES: $JDSGMH_SHARECODES" serverless.yml; fi; if [ $JDCFD_SHARECODES ]; then sed -i "/variables/a\ JDCFD_SHARECODES: $JDCFD_SHARECODES" serverless.yml; fi; + if [ $JDHEALTH_SHARECODES ]; then sed -i "/variables/a\ JDHEALTH_SHARECODES: $JDHEALTH_SHARECODES" serverless.yml; fi; if [ $JD_BEAN_STOP ]; then sed -i "/variables/a\ JD_BEAN_STOP: $JD_BEAN_STOP" serverless.yml; fi; if [ $JD_BEAN_SIGN_STOP_NOTIFY ]; then sed -i "/variables/a\ JD_BEAN_SIGN_STOP_NOTIFY: $JD_BEAN_SIGN_STOP_NOTIFY" serverless.yml; fi; if [ $JD_BEAN_SIGN_NOTIFY_SIMPLE ]; then sed -i "/variables/a\ JD_BEAN_SIGN_NOTIFY_SIMPLE: $JD_BEAN_SIGN_NOTIFY_SIMPLE" serverless.yml; fi; From 3d9a338f7631b512c116101c5d8be553f66e8c02 Mon Sep 17 00:00:00 2001 From: DoveBoy <393366046@qq.com> Date: Thu, 22 Apr 2021 14:31:42 +0800 Subject: [PATCH 2/2] SCF add health --- serverless.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serverless.yml b/serverless.yml index 8ccba63d..0e019654 100644 --- a/serverless.yml +++ b/serverless.yml @@ -52,12 +52,12 @@ inputs: cronExpression: "0 10 0 * * * *" enable: true argument: jd_redPacket&jd_shop&jd_unsubscribe&jd_lotteryMachine&jd_car&jd_ms - - timer: #天天提鹅 #5G超级盲盒 + - timer: #天天提鹅 #5G超级盲盒 #东东健康社区 parameters: - name: dailyegg_mohe + name: dailyegg_mohe_health cronExpression: "0 8 */3 * * * *" enable: true - argument: jd_daily_egg&jd_mohe + argument: jd_daily_egg&jd_mohe&jd_health - timer: #东东超市 parameters: name: superMarket