From 2d3e42c4122c5414f87e9e627629a596bbb07384 Mon Sep 17 00:00:00 2001 From: aswin-in-philips Date: Thu, 5 May 2022 14:17:39 +0530 Subject: [PATCH] Adding init and bumpversion --- .github/workflows/ci.yaml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 827d8fd5..bf873566 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,11 +3,36 @@ name: CI on: push: branches: - - 'edi-foundation-integration' + - 'refator-pipeline' # - $default-branch - workflow_dispatch: + paths-ignore: + - 'VERSION' + - '.bumpversion.cfg' + workflow_dispatch: jobs: + Init: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + token: ${{ secrets.ADMIN_TOKEN }} + + - name: Extract branch name + uses: vazco/github-actions-branch-name@v1 + id: branch + + - name: Bump version + run: | + bumpversion patch + new_version=`cat VERSION` + echo "New version is: $new_version" + + git config --global user.name "CI Build" + git config --global user.email "ci.build@philips.com" + git commit -am "Bump version $new_version" + git push --force + unit-test: env: COVER: true