Bo-Yi Wu 2020-02-09 11:37:56 +08:00 committed by GitHub
parent fd81fae289
commit fcfb760891

View file

@ -156,6 +156,7 @@ Pass environment variable to shell script
+ env: + env:
+ FOO: "BAR" + FOO: "BAR"
+ BAR: "FOO" + BAR: "FOO"
+ SHA: ${{ github.sha }}
with: with:
host: ${{ secrets.HOST }} host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
@ -165,6 +166,7 @@ Pass environment variable to shell script
script: | script: |
echo "I am $FOO" echo "I am $FOO"
echo "I am $BAR" echo "I am $BAR"
echo "sha: $SHA"
``` ```
Stop script after first failure. ex: missing `abc` folder Stop script after first failure. ex: missing `abc` folder