tes
This commit is contained in:
parent
437657be19
commit
c04e0ac7d0
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -15,11 +15,11 @@ jobs:
|
||||||
# https://stackoverflow.com/a/70447517
|
# https://stackoverflow.com/a/70447517
|
||||||
run: |
|
run: |
|
||||||
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
||||||
echo "${{ env.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.SSH_PRIVATE_KEY }}"
|
||||||
echo ${{ env.SSH_HOST }}
|
echo ${{ env.SSH_HOST }}
|
||||||
echo $SSH_HOST
|
echo $SSH_HOST
|
||||||
|
|
||||||
# ssh-keyscan -H ${{ env.SSH_HOST }} > ~/.ssh/known_hosts
|
# ssh-keyscan -H ${{ env.SSH_HOST }} > ~/.ssh/known_hosts
|
||||||
# - name: connect and pull
|
# - name: connect and pull
|
||||||
# run: ssh ${{ env.SSH_USER }}@${{ env.SSH_HOST }} "cd ${{ env.WORK_DIR }} && git checkout ${{ env.MAIN_BRANCH }} && git pull && exit"
|
# run: ssh ${{ env.SSH_USER }}@${{ env.SSH_HOST }} "cd ${{ env.WORK_DIR }} && git checkout ${{ env.MAIN_BRANCH }} && git pull && exit"
|
||||||
# - name: cleanup
|
# - name: cleanup
|
||||||
|
|
Loading…
Reference in New Issue
Block a user