diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 429f0e32..886cccdb 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.0.2 +current_version = 0.0.0 commit = True tag = True diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 27adcc45..7a1d109f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -7,7 +7,7 @@ jobs: steps: - name: Check PR Title for Conventional Commit Format run: | - if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|deps|doc|docs|feat|fix|perf|ref|refactor|revert|style|test|tests)(\(\w+\))?!?:\s.*'; then + if ! echo "${{ github.event.pull_request.title }}" | grep -Pq '^(build|chore|ci|deps|doc|docs|feat|fix|perf|ref|refactor|revert|style|test|tests|Bump version)(\(\w+\))?!?:\s.*'; then echo 'The title does not conform to the Conventional Commit.' echo 'Please refer to "https://www.conventionalcommits.org/"' exit 1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00817980..9fbed233 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,10 @@ jobs: echo "new_version=$NEW_VERSION" >> $GITHUB_ENV echo "New version: $NEW_VERSION" - name: Push changes - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git push --follow-tags + echo "${{ secrets.PRIVATE_KEY }}" >> ~/private_key + chmod 600 ~/private_key + GIT_SSH_COMMAND="ssh -i ~/private_key" git push --follow-tags - name: Generate changelog run: | make changelog diff --git a/pyproject.toml b/pyproject.toml index de5d3080..0a9c8e1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ license = {text = "MIT License"} name = "rdagent" readme = "README.md" requires-python = ">=3.10" -version = "v0.0.2" +version = "v0.0.0" [project.urls] homepage = "https://github.com/microsoft/RD-Agent/"