Skip to content

Commit b36905c

Browse files
ci: fix update workflow
This patch restores update workflow functionality. Closes TNTP-4298
1 parent 41ce7e8 commit b36905c

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

.cspell_project-words.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ccluster
1010
clientv3
1111
clustercmd
1212
commentf
13+
configcartridgecustom
14+
connpool
1315
containsf
1416
debugf
1517
demoter
@@ -61,6 +63,13 @@ tnt+
6163
tntp
6264
trimprefix
6365
truef
66+
unknowncentralized
67+
unknownnonetarantooletcd
68+
unknownnosinglemulti
69+
unknownoffmanualeventualelectionstatefulsupervised
70+
unknownoffvotercandidatemanual
71+
unknownreadrw
72+
unknownuninitializedbootstrapped
6473
vshard
6574
vylog
6675
warnf

.github/workflows/update.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
runs-on: ubuntu-22.04
1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
submodules: recursive
22+
fetch-tags: true
1923

2024
- name: Setup Go
2125
uses: actions/setup-go@v4
@@ -48,7 +52,12 @@ jobs:
4852
author: 'TarantoolBot <TarantoolBot@users.noreply.github.com>'
4953
body: 'Automated changes by [update](https://github.com/tarantool/tt/blob/master/.github/workflows/update.yml) job.'
5054
branch: 'github-actions/update'
51-
commit-message: 'generate: autoupdate'
55+
commit-message: |
56+
generate: update auto-generated code
57+
58+
This patch updates auto-generated code.
59+
60+
Related to #1231
5261
committer: 'TarantoolBot <TarantoolBot@users.noreply.github.com>'
5362
title: 'generate: autoupdate'
5463
token: '${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}'

cli/replicaset/electionmode.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package replicaset
22

33
import "strings"
44

5+
// ElectionMode defines an enumeration of election types.
56
type ElectionMode int
67

78
//go:generate stringer -type=ElectionMode -trimprefix ElectionMode -linecomment
@@ -19,6 +20,7 @@ const (
1920
ElectionModeManual // manual
2021
)
2122

23+
// ParseElectionMode returns an election type from a string representation.
2224
func ParseElectionMode(str string) ElectionMode {
2325
switch strings.ToLower(str) {
2426
case "off":

lib/cluster/paths_generate.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ var ConfigEnvPaths = [][]string{
120120
]])
121121

122122
for _, config in ipairs(configs) do
123-
file:write('[]string{')
123+
file:write('{')
124124
for i, v in ipairs(config.path) do
125125
file:write('"' .. v .. '"')
126126
if i < #config.path then
@@ -136,7 +136,7 @@ var TarantoolSchema = []SchemaPath{
136136
]])
137137

138138
for _, config in ipairs(configs) do
139-
file:write('SchemaPath{\nPath: []string{')
139+
file:write('{\nPath: []string{')
140140
for i, v in ipairs(config.path) do
141141
file:write('"' .. v .. '"')
142142
if i < #config.path then

0 commit comments

Comments
 (0)