From f478af9b3489de7bd8dbece7c602fd9a9f952e15 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 7 Dec 2019 20:19:15 +0800 Subject: [PATCH] docs: pass multiple environment --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3626f98..b542471 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"