From 0955382aec697d6c25a7f6789c7563905aff6cdd Mon Sep 17 00:00:00 2001 From: Haichen Shen Date: Fri, 1 Sep 2023 22:41:23 +0800 Subject: [PATCH] fix(ci): enable the bump-version bot when PR is updated (#905) Co-authored-by: icemelon Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> --- .github/pull_request_template.md | 2 +- .github/workflows/bump_version.yml | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 33fd8d28c..042e15a10 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -20,7 +20,7 @@ Your PR title must follow [conventional commits](https://www.conventionalcommits ### Deployment tag versioning -Has `tag` in `common/version.go` been updated or have you added `bump-version` tag to this PR? +Has `tag` in `common/version.go` been updated or have you added `bump-version` label to this PR? - [ ] No, this PR doesn't involve a new deployment, git tag, docker image tag - [ ] Yes diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 14aa794aa..8d3f0db9f 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -3,11 +3,16 @@ name: Bump Version on: pull_request: branches: [ develop ] - types: [ labeled ] + types: + - opened + - reopened + - synchronize + - ready_for_review + - labeled jobs: try-to-bump: - if: ${{ github.event.label.name == 'bump-version' }} + if: contains(github.event.pull_request.labels.*.name, 'bump-version') runs-on: ubuntu-latest steps: - name: Checkout code