починил ран команду

This commit is contained in:
Serafim Urukov 2021-10-30 02:02:46 +03:00
parent 20631adb70
commit e81e2e3206

View File

@ -14,11 +14,12 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
- name: Connect to Yandex Cloud on my own - name: Connect to Yandex Cloud on my own
- run: set -eu - run: |
- run: mkdir "$HOME/.ssh" set -eu
- run: echo "${{ secrets.key }}" > "$HOME/.ssh/key" mkdir "$HOME/.ssh"
- run: chmod 600 "$HOME/.ssh/key" echo "${{ secrets.key }}" > "$HOME/.ssh/key"
- run: ssh -i $HOME/.ssh/key carolyn@{{secrets.HOST}} -o StrictHostKeyChecking=no 'ls -al' chmod 600 "$HOME/.ssh/key"
ssh -i $HOME/.ssh/key carolyn@{{secrets.HOST}} -o StrictHostKeyChecking=no 'ls -al'
- name: Connect to Yandex Cloud - name: Connect to Yandex Cloud
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master