mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-09 14:08:03 -05:00
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:
2
.github/pull_request_template.md
vendored
2
.github/pull_request_template.md
vendored
@@ -20,7 +20,7 @@ Your PR title must follow [conventional commits](https://www.conventionalcommits
|
|||||||
|
|
||||||
### Deployment tag versioning
|
### 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
|
- [ ] No, this PR doesn't involve a new deployment, git tag, docker image tag
|
||||||
- [ ] Yes
|
- [ ] Yes
|
||||||
|
|||||||
9
.github/workflows/bump_version.yml
vendored
9
.github/workflows/bump_version.yml
vendored
@@ -3,11 +3,16 @@ name: Bump Version
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
types: [ labeled ]
|
types:
|
||||||
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
|
- ready_for_review
|
||||||
|
- labeled
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
try-to-bump:
|
try-to-bump:
|
||||||
if: ${{ github.event.label.name == 'bump-version' }}
|
if: contains(github.event.pull_request.labels.*.name, 'bump-version')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
Reference in New Issue
Block a user