From ecd8563fce467f7e969a8e3b2b2debcbe1f449d7 Mon Sep 17 00:00:00 2001 From: Serkan Calis Date: Fri, 13 Sep 2024 12:49:38 +0300 Subject: [PATCH] implement 11.15 Adding versioning --- .github/workflows/pipeline.yml | 15 ++++++++++++++- app.js | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index ba2c6ab07c..6f1b629fe5 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -22,4 +22,17 @@ jobs: - name: Build run: npm run build - name: Test - run: npm run test \ No newline at end of file + run: npm run test + tag_release: + if: ${{ github.event_name == 'push' }} + needs: [simple_deployment_pipeline] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: '0' + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.70.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEFAULT_BUMP: patch \ No newline at end of file diff --git a/app.js b/app.js index 834933bd23..98e6e9d0cb 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('6') + res.send('7') }) app.get('/health', (req, res) => {