Skip to content

Commit

Permalink
fix(ci): enable the bump-version bot when PR is updated (#905)
Browse files Browse the repository at this point in the history
Co-authored-by: icemelon <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
  • Loading branch information
3 people authored Sep 1, 2023
1 parent 07961f7 commit 0955382
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 0955382

@Dtpsptms15
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank u

Please sign in to comment.