Skip to content

Commit

Permalink
ci-skip on initial commits to prevent automatic workflows (#717)
Browse files Browse the repository at this point in the history
* ci-skip on initial commits to prevent automatic workflows

* ci skip format
  • Loading branch information
johndietz authored Nov 12, 2022
1 parent f1dece8 commit fa74b05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.argo/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spec:
- name: appDir
value: "{{workflow.parameters.appDir}}"
- name: commitMessage
value: "[CI SKIP] setting {{workflow.parameters.appName}} {{workflow.parameters.environment}} to chart version {{steps.get-initial-chart-version.outputs.result}}"
value: "[ci skip] setting {{workflow.parameters.appName}} {{workflow.parameters.environment}} to chart version {{steps.get-initial-chart-version.outputs.result}}"
- name: repoPath
value: gitlab.mgmt.kubefirst.com/kubefirst/{{workflow.parameters.appName}}

2 changes: 1 addition & 1 deletion internal/gitClient/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func PushLocalRepoToEmptyRemote(githubHost, githubOwner, localRepo, remoteName s
log.Println("error getting worktree status", err)
}
}
w.Commit("setting new remote upstream to github", &git.CommitOptions{
w.Commit("[ci skip] setting new remote upstream to github", &git.CommitOptions{
Author: &object.Signature{
Name: "kubefirst-bot",
Email: "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion internal/repo/kubefirstTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func PrepareKubefirstTemplateRepo(dryRun bool, config *configs.Config, githubOrg
log.Println("error getting worktree status", err)
}
}
w.Commit(fmt.Sprintf("committing detokenized %s content", repoName), &git.CommitOptions{
w.Commit(fmt.Sprintf("[ci skip] committing detokenized %s content", repoName), &git.CommitOptions{
Author: &object.Signature{
Name: "kubefirst-bot",
Email: "[email protected]",
Expand Down

0 comments on commit fa74b05

Please sign in to comment.