Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/io/kestra/plugin/git/Sync.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
code = """
id: sync_from_git
namespace: company.team

tasks:
- id: git
type: io.kestra.plugin.git.Sync
Expand All @@ -70,7 +70,7 @@
gitDirectory: your_git_dir # optional, otherwise all files
namespaceFilesDirectory: your_namespace_files_location # optional, otherwise the namespace root directory
dryRun: true # if true, print the output of what files will be added/modified or deleted without overwriting the files yet

triggers:
- id: every_minute
type: io.kestra.plugin.core.trigger.Schedule
Expand Down Expand Up @@ -184,7 +184,7 @@ public VoidOutput run(RunContext runContext) throws Exception {
.filter(flow -> !flowIdsImported.contains(flow.getId()))
.forEach(flow -> {
if (!dryRun) {
flowRepository.delete(flow.withSource(null));
flowRepository.delete(flow);
}
logDeletion(logger, "/_flows/" + flow.getId() + ".yml");
});
Expand Down
Loading