This commit is contained in:
parent
7868248335
commit
b8c000a6a7
20
.gitea/workflows/hello-world.yaml
Normal file
20
.gitea/workflows/hello-world.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user