personalpage/.github/workflows/main.yml

19 lines
513 B
YAML
Raw Normal View History

2024-01-25 08:32:12 +07:00
on:
push:
branches:
- main
workflow_dispatch:
jobs:
run_pull:
name: run pull
runs-on: ubuntu-latest
steps:
- name: install ssh keys
# check this thread to understand why its needed:
# https://stackoverflow.com/a/70447517
2024-02-15 10:33:41 +07:00
run: touch ~/.ssh/id_rsa && echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa && ssh-keyscan -H ${{ secrets.SSH_HOST }}
2024-01-25 08:59:43 +07:00
- name: connect and pull
2024-02-15 10:21:51 +07:00
run: echo "${{ secrets.SSH_USER }}"
2024-01-25 08:59:43 +07:00
- name: cleanup
run: rm -rf ~/.ssh