Update push.yml

This commit is contained in:
MattTheTekie 2023-12-30 15:25:21 -05:00 committed by GitHub
commit eee85837d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,10 +17,10 @@ jobs:
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
host='host.example.com'
host='${{ secrets.IP }}'
hosts="$(dig +short "$host" | grep -v '\.$' | sed -z 's|\n|,|g')$host"
ssh-keyscan -H "$hosts" > ~/.ssh/known_hosts
- name: Pushing Files...
run: |
echo "Pushing Files..."