Skip to content

Commit 87f2cb2

Browse files
fix: ensure that github actions are not overwritten
Users should be able to edit those files as please them. If we do not skip then, they might can lose their customizations. We should not allow overwritten in this one
1 parent 4d82257 commit 87f2cb2

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

pkg/plugins/golang/v4/scaffolds/internal/templates/github/lint.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func (f *LintCi) SetTemplateDefaults() error {
3838

3939
f.TemplateBody = lintCiTemplate
4040

41+
f.IfExistsAction = machinery.SkipFile
42+
4143
return nil
4244
}
4345

pkg/plugins/golang/v4/scaffolds/internal/templates/github/test-e2e.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func (f *E2eTestCi) SetTemplateDefaults() error {
3838

3939
f.TemplateBody = e2eTestCiTemplate
4040

41+
f.IfExistsAction = machinery.SkipFile
42+
4143
return nil
4244
}
4345

pkg/plugins/golang/v4/scaffolds/internal/templates/github/test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func (f *TestCi) SetTemplateDefaults() error {
3838

3939
f.TemplateBody = testCiTemplate
4040

41+
f.IfExistsAction = machinery.SkipFile
42+
4143
return nil
4244
}
4345

0 commit comments

Comments
 (0)