mirror of
https://githubfast.com/appleboy/ssh-action
synced 2024-10-31 15:46:30 +00:00
chore: add testing
This commit is contained in:
parent
eb7678e937
commit
0225b4ff08
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@ -7,7 +7,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build:
|
testing01:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -172,3 +172,28 @@ jobs:
|
|||||||
# key: ${{ secrets.ID_ED25519 }}
|
# key: ${{ secrets.ID_ED25519 }}
|
||||||
# port: ${{ secrets.TUNNEL_PORT }}
|
# port: ${{ secrets.TUNNEL_PORT }}
|
||||||
# script: whoami
|
# script: whoami
|
||||||
|
|
||||||
|
testing02:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: custom envs format
|
||||||
|
uses: ./
|
||||||
|
env:
|
||||||
|
FOO: "BAR"
|
||||||
|
AAA: "BBB"
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.KEY }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
envs: FOO,AAA
|
||||||
|
envs_format: export TEST_{NAME}={VALUE}
|
||||||
|
script: |
|
||||||
|
echo "I am $TEST_FOO, thanks"
|
||||||
|
echo "I am $TEST_BAR, thanks"
|
||||||
|
echo "I am $BAR, thanks"
|
||||||
|
echo "I am $TEST_AAA, thanks"
|
||||||
|
Loading…
Reference in New Issue
Block a user