From fcfb760891372d85e86996817764efbd48e6470d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 9 Feb 2020 11:37:56 +0800 Subject: [PATCH] docs: add GitHub syntax (#30) see: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/contexts-and-expression-syntax-for-github-actions fixed: https://github.com/appleboy/ssh-action/issues/28 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 88f2765..3c62dd8 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ Pass environment variable to shell script + env: + FOO: "BAR" + BAR: "FOO" ++ SHA: ${{ github.sha }} with: host: ${{ secrets.HOST }} username: ${{ secrets.USERNAME }} @@ -165,6 +166,7 @@ Pass environment variable to shell script script: | echo "I am $FOO" echo "I am $BAR" + echo "sha: $SHA" ``` Stop script after first failure. ex: missing `abc` folder