From 8ba3cfe7605f2a1aa3e21a6328339f158d396cb4 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 4 May 2020 09:12:47 +0800 Subject: [PATCH] docs: use with instead of env Signed-off-by: Bo-Yi Wu --- README.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 875734e..8fc56b2 100644 --- a/README.md +++ b/README.md @@ -83,12 +83,11 @@ Copy file via ssh key ```yaml - name: copy file via ssh key uses: appleboy/scp-action@master - env: - HOST: ${{ secrets.HOST }} - USERNAME: ${{ secrets.USERNAME }} - PORT: ${{ secrets.PORT }} - KEY: ${{ secrets.KEY }} with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + port: ${{ secrets.PORT }} + key: ${{ secrets.KEY }} source: "tests/a.txt,tests/b.txt" target: "test" ``` @@ -98,12 +97,11 @@ Example configuration for ignore list: ```yaml - name: copy file via ssh key uses: appleboy/scp-action@master - env: - HOST: ${{ secrets.HOST }} - USERNAME: ${{ secrets.USERNAME }} - PORT: ${{ secrets.PORT }} - KEY: ${{ secrets.KEY }} with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + port: ${{ secrets.PORT }} + key: ${{ secrets.KEY }} source: "tests/*.txt,!tests/a.txt" target: "test" ```