2024-09-06 13:55:30 -07:00
|
|
|
name: SSH and echo to file
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-10-24 15:35:10 -07:00
|
|
|
branches: [ main ]
|
|
|
|
paths: [ 'homelab/vyos/config.boot' ]
|
2024-09-06 13:55:30 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
ssh:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: SSH into host
|
2024-09-12 14:19:15 -07:00
|
|
|
uses: appleboy/ssh-action@v1.0.3
|
2024-09-06 13:55:30 -07:00
|
|
|
with:
|
2024-10-24 15:32:33 -07:00
|
|
|
host: 192.168.1.1
|
|
|
|
username: vyos
|
2024-09-06 14:20:29 -07:00
|
|
|
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
|
2024-09-06 13:55:30 -07:00
|
|
|
script: |
|
2024-10-24 15:35:10 -07:00
|
|
|
echo "$(date)" >> ~/hello.txt
|