docs: pass multiple environment

pull/25/head
Bo-Yi Wu 5 years ago
parent d520c19f4f
commit f478af9b34

@ -60,3 +60,18 @@ jobs:
script: | script: |
echo "I am $FOO, thanks" echo "I am $FOO, thanks"
echo "I am $BAR, 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"

Loading…
Cancel
Save