Skip to content

Commit

Permalink
implement 11.14 Run deployment step only for the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
devserkan committed Sep 12, 2024
1 parent 7865a8e commit e58c885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit e58c885

Please sign in to comment.