fix(ci): enable the bump-version bot when PR is updated (#905)

Co-authored-by: icemelon <icemelon@users.noreply.github.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
This commit is contained in:
Haichen Shen
2023-09-01 22:41:23 +08:00
committed by GitHub
parent 07961f751e
commit 0955382aec
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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