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:21:51 +07:00
|
|
|
run: echo "${{ secrets.SSH_PRIVATE_KEY }}"
|
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
|