diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f6619d..dd7bd92 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,7 @@ on: - closed jobs: + name: Backend Merge if_merged: if: github.event.pull_request.merged == true && github.head_ref == 'Backend' runs-on: ubuntu-latest @@ -17,5 +18,8 @@ jobs: #passphrase: ${{ secrets.PASSPHRASE }} port: 22 script: | - pwd - \ No newline at end of file + cd ${{ secrets.PWD }} + git pull origin main + cd ${{ secrets.PWD }}/BackendJS/BackendTS + npm install + pm2 restart Traffic \ No newline at end of file