Skip to content

Commit fa74b05

Browse files
authored
ci-skip on initial commits to prevent automatic workflows (#717)
* ci-skip on initial commits to prevent automatic workflows * ci skip format
1 parent f1dece8 commit fa74b05

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/.argo/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ spec:
153153
- name: appDir
154154
value: "{{workflow.parameters.appDir}}"
155155
- name: commitMessage
156-
value: "[CI SKIP] setting {{workflow.parameters.appName}} {{workflow.parameters.environment}} to chart version {{steps.get-initial-chart-version.outputs.result}}"
156+
value: "[ci skip] setting {{workflow.parameters.appName}} {{workflow.parameters.environment}} to chart version {{steps.get-initial-chart-version.outputs.result}}"
157157
- name: repoPath
158158
value: gitlab.mgmt.kubefirst.com/kubefirst/{{workflow.parameters.appName}}
159159

internal/gitClient/git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func PushLocalRepoToEmptyRemote(githubHost, githubOwner, localRepo, remoteName s
325325
log.Println("error getting worktree status", err)
326326
}
327327
}
328-
w.Commit("setting new remote upstream to github", &git.CommitOptions{
328+
w.Commit("[ci skip] setting new remote upstream to github", &git.CommitOptions{
329329
Author: &object.Signature{
330330
Name: "kubefirst-bot",
331331
Email: "kubefirst-bot@kubefirst.com",

internal/repo/kubefirstTemplate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func PrepareKubefirstTemplateRepo(dryRun bool, config *configs.Config, githubOrg
127127
log.Println("error getting worktree status", err)
128128
}
129129
}
130-
w.Commit(fmt.Sprintf("committing detokenized %s content", repoName), &git.CommitOptions{
130+
w.Commit(fmt.Sprintf("[ci skip] committing detokenized %s content", repoName), &git.CommitOptions{
131131
Author: &object.Signature{
132132
Name: "kubefirst-bot",
133133
Email: "kubefirst-bot@kubefirst.com",

0 commit comments

Comments
 (0)