Update .gitea/workflows/sgeupdated.yml
Some checks failed
sgeUpdated CI/CD / deploy (pull_request) Failing after 43s

This commit is contained in:
2025-10-30 19:55:44 +03:00
parent 554a50b1d2
commit 8639fdf1ae

View File

@@ -1,15 +1,15 @@
name: sgeUpdated CI/CD name: sgeUpdated CI/CD
on: on:
pull_request: push:
types:
- closed # Fires when a PR is closed (either merged or manually closed)
branches: branches:
- main # Only when PR targets main - main
pull_request:
branches:
- main
jobs: jobs:
deploy: deploy:
if: github.event.pull_request.merged == true # Run only if the PR was merged (not just closed)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -23,7 +23,7 @@ jobs:
- name: Run deploy script on server - name: Run deploy script on server
run: | run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF' ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
echo "✅ PR merged into main — running deploy script..." echo "✅ Connected to server. Running deploy script..."
cd /home/ubuntu/Bgreen/sgeUpdated cd /home/ubuntu/Bgreen/sgeUpdated
./deploy.sh ./deploy.sh
EOF EOF