Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Deploy to Production

on:
pull_request:
types: [closed]
push:
branches: [ main ]

concurrency:
Expand All @@ -12,13 +11,18 @@ concurrency:
jobs:
deploy:
runs-on: self-hosted
# Sadece merge edilen PR'lar için çalış
if: github.event.pull_request.merged == true
# Son 5 saniyede başka bir workflow başladıysa bu iptal edilir
timeout-minutes: 30
defaults:
run:
working-directory: /home/eksicode

steps:
# Kısa bir bekleme - eğer hemen ardından başka push varsa
# concurrency sayesinde bu iptal olur
- name: Wait for concurrent pushes
run: sleep 3

- name: Pull latest changes
run: git pull origin main

Expand Down