Skip to content

fix(script): last line #11

fix(script): last line

fix(script): last line #11

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: |
if [ -d ${{ vars.PROJECT_DIR }}/.git ]; \
then git -C ${{ vars.PROJECT_DIR }} pull; \
else git clone ${{ github.server_url }}/${{ github.repository }} ${{ vars.PROJECT_DIR }} && \
make init; fi