From 7865a8eed91142f22eae97fa571ec8ccfc294b5e Mon Sep 17 00:00:00 2001 From: Serkan Calis Date: Fri, 13 Sep 2024 02:05:19 +0300 Subject: [PATCH 1/2] implement 11.13 Pull request --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 656dbf2172..0676825434 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('2') + res.send('5') }) app.get('/health', (req, res) => { From e58c88580681f24a34992a32a40fd53c3713db60 Mon Sep 17 00:00:00 2001 From: Serkan Calis Date: Fri, 13 Sep 2024 02:18:42 +0300 Subject: [PATCH 2/2] 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) => {