mirror of
https://github.com/appleboy/ssh-action.git
synced 2024-11-13 21:38:03 +00:00
docs: pass multiple environment
This commit is contained in:
parent
d520c19f4f
commit
f478af9b34
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user