Skip to content

Commit 0bce5f2

Browse files
committed
fix(build): streamline Git commands for client repository management
1 parent 6e01b02 commit 0bce5f2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ tasks {
109109
tempDir.mkdirs()
110110

111111
// Clone the repository using token authentication
112-
providers.exec {
112+
exec {
113113
workingDir = tempDir
114114
commandLine("git", "clone", "https://${githubToken}@github.com/OneLiteFeatherNET/vulpes-backend-client-dart.git", ".")
115115
}
@@ -121,22 +121,22 @@ tasks {
121121
}
122122

123123
// Commit and push the changes
124-
providers.exec {
124+
exec {
125125
workingDir = tempDir
126126
commandLine("git", "add", ".")
127127
}
128128

129-
providers.exec {
129+
exec {
130130
workingDir = tempDir
131131
commandLine("git", "commit", "-m", "Update client to version $version")
132132
}
133133

134-
providers.exec {
134+
exec {
135135
workingDir = tempDir
136136
commandLine("git", "tag", "-a", "v$version", "-m", "Version $version")
137137
}
138138

139-
providers.exec {
139+
exec {
140140
workingDir = tempDir
141141
commandLine("git", "push", "origin", "main", "--tags")
142142
}

0 commit comments

Comments
 (0)