diff --git a/cmd/replace-with-commands/main.go b/cmd/replace-with-commands/main.go index 7afa762..f4fc1ea 100644 --- a/cmd/replace-with-commands/main.go +++ b/cmd/replace-with-commands/main.go @@ -69,7 +69,7 @@ $ replace-with-commands --prefix='# @updator:' --list .github/workflows/*.yml newLines := []string{} isDirty := false - file, err := os.Create(path) + file, err := os.Open(path) if err != nil { log.Fatalf("%+v", xerrors.Errorf("%s: %w", path, err)) }