Update deploy_tencent_scf.yml
This commit is contained in:
4
.github/workflows/deploy_tencent_scf.yml
vendored
4
.github/workflows/deploy_tencent_scf.yml
vendored
@@ -22,6 +22,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
sudo npm install serverless -g
|
sudo npm install serverless -g
|
||||||
|
env:
|
||||||
|
TG_USER_ID: ${{ secrets.TG_USER_ID}}
|
||||||
|
|
||||||
- name: "将Secrets里面配置的变量添加到severless.yml里面作为环境变量"
|
- name: "将Secrets里面配置的变量添加到severless.yml里面作为环境变量"
|
||||||
run: |
|
run: |
|
||||||
@@ -34,7 +36,7 @@ jobs:
|
|||||||
if [ ${{ secrets.BARK_PUSH}} ]; then sed -i "/variables/a\ BARK_PUSH: ${{ secrets.BARK_PUSH}}" serverless.yml; fi;
|
if [ ${{ secrets.BARK_PUSH}} ]; then sed -i "/variables/a\ BARK_PUSH: ${{ secrets.BARK_PUSH}}" serverless.yml; fi;
|
||||||
if [ ${{ secrets.BARK_SOUND}} ]; then sed -i "/variables/a\ BARK_SOUND: ${{ secrets.BARK_SOUND}}" serverless.yml; fi;
|
if [ ${{ secrets.BARK_SOUND}} ]; then sed -i "/variables/a\ BARK_SOUND: ${{ secrets.BARK_SOUND}}" serverless.yml; fi;
|
||||||
if [ ${{ secrets.TG_BOT_TOKEN}} ]; then sed -i "/variables/a\ TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN}}" serverless.yml; fi;
|
if [ ${{ secrets.TG_BOT_TOKEN}} ]; then sed -i "/variables/a\ TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN}}" serverless.yml; fi;
|
||||||
if [ ${{ secrets.TG_USER_ID}} ]; then sed -i "/variables/a\ TG_USER_ID: ${{ secrets.TG_USER_ID}}" serverless.yml; fi;
|
if [ $TG_USER_ID ]; then sed -i "/variables/a\ TG_USER_ID: $TG_USER_ID" serverless.yml; fi;
|
||||||
if [ ${{ secrets.DD_BOT_TOKEN}} ]; then sed -i "/variables/a\ DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN}}" serverless.yml; fi;
|
if [ ${{ secrets.DD_BOT_TOKEN}} ]; then sed -i "/variables/a\ DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN}}" serverless.yml; fi;
|
||||||
if [ ${{ secrets.DD_BOT_SECRET}} ]; then sed -i "/variables/a\ DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET}}" serverless.yml; fi;
|
if [ ${{ secrets.DD_BOT_SECRET}} ]; then sed -i "/variables/a\ DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET}}" serverless.yml; fi;
|
||||||
if [ ${{ secrets.IGOT_PUSH_KEY}} ]; then sed -i "/variables/a\ IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY}}" serverless.yml; fi;
|
if [ ${{ secrets.IGOT_PUSH_KEY}} ]; then sed -i "/variables/a\ IGOT_PUSH_KEY: ${{ secrets.IGOT_PUSH_KEY}}" serverless.yml; fi;
|
||||||
|
Reference in New Issue
Block a user