From 2dcac20e63d74232743e2ea9f20a27ef5cb90039 Mon Sep 17 00:00:00 2001 From: Akira Date: Wed, 18 Nov 2020 17:09:11 +0800 Subject: [PATCH] Update deploy_tencent_scf.yml --- .github/workflows/deploy_tencent_scf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy_tencent_scf.yml b/.github/workflows/deploy_tencent_scf.yml index d40a834..5f817b4 100644 --- a/.github/workflows/deploy_tencent_scf.yml +++ b/.github/workflows/deploy_tencent_scf.yml @@ -25,7 +25,7 @@ jobs: - name: "将Secrets里面配置的变量添加到severless.yml里面作为环境变量" run: | - if [ ${{ secrets.JD_COOKIE}} ]; then sed -i "/variables/a\ JD_COOKIE: ${{ secrets.JD_COOKIE}}" serverless.yml; fi; + sed -i "/variables/a\ JD_COOKIE: ${{ secrets.JD_COOKIE}}" serverless.yml if [ ${{ secrets.JD_BEAN_STOP}} ]; then sed -i "/variables/a\ JD_BEAN_STOP: ${{ secrets.JD_BEAN_STOP}}" serverless.yml; fi; if [ ${{ secrets.JD_BEAN_SIGN_STOP_NOTIFY}} ]; then sed -i "/variables/a\ JD_BEAN_SIGN_STOP_NOTIFY: ${{ secrets.JD_BEAN_SIGN_STOP_NOTIFY}}" serverless.yml; fi; if [ ${{ secrets.JD_BEAN_SIGN_NOTIFY_SIMPLE}} ]; then sed -i "/variables/a\ JD_BEAN_SIGN_NOTIFY_SIMPLE: ${{ secrets.JD_BEAN_SIGN_NOTIFY_SIMPLE}}" serverless.yml; fi;