|
|
@ -39,6 +39,7 @@ jobs:
|
|
|
|
ls -al
|
|
|
|
ls -al
|
|
|
|
|
|
|
|
|
|
|
|
# - name: stop script if command error
|
|
|
|
# - name: stop script if command error
|
|
|
|
|
|
|
|
# if: always()
|
|
|
|
# uses: ./
|
|
|
|
# uses: ./
|
|
|
|
# with:
|
|
|
|
# with:
|
|
|
|
# host: ${{ secrets.HOST }}
|
|
|
|
# host: ${{ secrets.HOST }}
|
|
|
@ -70,16 +71,18 @@ jobs:
|
|
|
|
FOO: "BAR"
|
|
|
|
FOO: "BAR"
|
|
|
|
BAR: "FOO"
|
|
|
|
BAR: "FOO"
|
|
|
|
SHA: ${{ github.sha }}
|
|
|
|
SHA: ${{ github.sha }}
|
|
|
|
|
|
|
|
PORT: ${{ secrets.PORT }}
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
envs: FOO,BAR,SHA
|
|
|
|
envs: FOO,BAR,SHA,PORT
|
|
|
|
script: |
|
|
|
|
script: |
|
|
|
|
echo "I am $FOO, thanks"
|
|
|
|
echo "I am $FOO, thanks"
|
|
|
|
echo "I am $BAR, thanks"
|
|
|
|
echo "I am $BAR, thanks"
|
|
|
|
echo "sha: $SHA"
|
|
|
|
echo "sha: $SHA"
|
|
|
|
|
|
|
|
echo "port: $PORT"
|
|
|
|
|
|
|
|
|
|
|
|
- name: ssh key passphrase
|
|
|
|
- name: ssh key passphrase
|
|
|
|
uses: ./
|
|
|
|
uses: ./
|
|
|
|