From e58c88580681f24a34992a32a40fd53c3713db60 Mon Sep 17 00:00:00 2001
From: Serkan Calis <serkancalis@gmail.com>
Date: Fri, 13 Sep 2024 02:18:42 +0300
Subject: [PATCH] implement 11.14 Run deployment step only for the main branch

---
 .github/workflows/fly-deploy.yml | 1 +
 app.js                           | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml
index 514a134dd8..6bdb6aee98 100644
--- a/.github/workflows/fly-deploy.yml
+++ b/.github/workflows/fly-deploy.yml
@@ -11,6 +11,7 @@ on:
 jobs:
   deploy:
     name: Deploy app
+    if: ${{ github.event_name == 'push' }}
     runs-on: ubuntu-latest
     concurrency: deploy-group    # optional: ensure only one action runs at a time
     steps:
diff --git a/app.js b/app.js
index 0676825434..834933bd23 100644
--- a/app.js
+++ b/app.js
@@ -5,7 +5,7 @@ const app = express()
 const PORT = process.env.PORT || 5001
 
 app.get('/version', (req, res) => {
-  res.send('5')
+  res.send('6')
 })
 
 app.get('/health', (req, res) => {