docs: pass multiple environment

This commit is contained in:
Bo-Yi Wu 2019-12-07 20:19:15 +08:00
parent d520c19f4f
commit f478af9b34
1 changed files with 15 additions and 0 deletions

View File

@ -60,3 +60,18 @@ jobs:
script: |
echo "I am $FOO, thanks"
echo "I am $BAR, thanks"
- name: pass multiple environment
uses: appleboy/ssh-action@master
env:
FOO: "BAR"
BAR: "FOO"
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
envs: FOO,BAR
script: |
echo "I am $FOO, thanks"
echo "I am $BAR, thanks"