Jafner.net/.gitea/workflows/hello-world.yaml
Joey Hafner 30114d497d
Some checks failed
SSH and echo to file / ssh (push) Failing after 5s
WIP SSH action template
2024-09-12 14:19:15 -07:00

20 lines
414 B
YAML

name: SSH and echo to file
on:
push:
branches:
- main
jobs:
ssh:
runs-on: ubuntu-latest
steps:
- name: SSH into host
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST_DOMAIN }}
username: ${{ secrets.HOST_USERNAME }}
key: ${{ secrets.RUNNER_SSH_PRIVATEKEY }}
script: |
echo "Hello, world!" >> ~/hello.txt