Skip to content

chore(cd): git -C pull #5

chore(cd): git -C pull

chore(cd): git -C pull #5

Workflow file for this run

name: Pull the git repository on the server
on:
push:
branches:
- main
jobs:
pull:
runs-on: ubuntu-latest
steps:
- name: Pull the git repository with ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: git -C ${{ vars.PROJECT_DIR }} pull origin main