Skip to content

Commit

Permalink
fix: oneliner
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyoslav committed Jun 22, 2024
1 parent d1554a8 commit c9bff6a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ jobs:
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 }}; \
fi
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 }}; fi

0 comments on commit c9bff6a

Please sign in to comment.