Jafner.net/.gitea/workflows/hello-world.yaml
Joey Hafner b8c000a6a7
Some checks failed
SSH and echo to file / ssh (push) Failing after 3s
Init test workflow
2024-09-06 13:55:30 -07:00

21 lines
428 B
YAML

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