diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 00000000..cedae98c --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,6 @@ +[bumpversion] +current_version = 1.0.7 +commit = False +tag = False + +[bumpversion:file:VERSION] \ No newline at end of file diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 33fb57ce..0782cc2e 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -7,6 +7,28 @@ on: # - $default-branch 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 diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..f9cbc01a --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0.7 \ No newline at end of file