-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.repver
More file actions
25 lines (24 loc) · 798 Bytes
/
.repver
File metadata and controls
25 lines (24 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# https://github.com/UnitVectorY-Labs/repver
commands:
- name: "goversion"
params:
- name: "version"
pattern: "^(?P<major>0|[1-9]\\d*)\\.(?P<minor>0|[1-9]\\d*)\\.(?P<patch>0|[1-9]\\d*)$"
targets:
- path: "go.mod"
pattern: "^go (?P<version>.*) // GOVERSION$"
transform: "{{major}}.{{minor}}"
- path: ".github/workflows/build-go.yml"
pattern: "^ go-version: '(?P<version>.*)' # GOVERSION$"
- path: "Dockerfile"
pattern: "^FROM golang:(?P<version>.*) AS builder$"
git:
create_branch: true
branch_name: "repver/go-v{{version}}"
commit: true
commit_message: "Update Go version to v{{version}}"
push: true
remote: "origin"
pull_request: "GITHUB_CLI"
return_to_original_branch: true
delete_branch: true