Skip to content

Commit

Permalink
added git pull in workflow3
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulZhemanov committed May 1, 2024
1 parent ce28583 commit f5d3961
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3

- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Setup SSH known_hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H 15.236.36.30 >> ~/.ssh/known_hosts
- name: Setup SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: SSH Commands
run: ssh -o StrictHostKeyChecking=yes [email protected] '
cd spark-matcher
git pull'
- name: Setup SSH known_hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -H 15.236.36.30 >> ~/.ssh/known_hosts
- name: SSH Commands
run: |
ssh -o StrictHostKeyChecking=yes [email protected] '
cd spark-matcher
git pull
'

0 comments on commit f5d3961

Please sign in to comment.