mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-25 11:39:36 +01:00
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
This commit is contained in:
parent
fd81fae289
commit
fcfb760891
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue