You are viewing the docs for v1.3, which is not the latest release.
View latest

Update Flows: Git Tasks Now Default to main Branch in 0.21.0

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

Default Git Branch

Changed default Git branch name from kestra to main.

The default branch within Git tasks has been renamed from kestra to main (PR #98). Update any workflows that implicitly rely on the former default branch within PushFlows, PushNamespaceFiles, SyncNamespaceFiles.

Here is an example before and after the change.

Before 0.21.0

yamlid: push_to_git
namespace: system

tasks:
  - id: commit_and_push
    type: io.kestra.plugin.git.PushFlows
    gitDirectory: _flows
    url: https://github.com/kestra-io/scripts # required string
    username: git_username # required string needed for Auth with Git
    password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
    branch: main # optional, uses "kestra" by default

After 0.21.0

yamlid: push_to_git
namespace: system

tasks:
  - id: commit_and_push
    type: io.kestra.plugin.git.PushFlows
    gitDirectory: _flows
    url: https://github.com/kestra-io/scripts # required string
    username: git_username # required string needed for Auth with Git
    password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
    branch: main # optional, uses "main" by default