Update File Content

Update a file in GitHub.

This card supports updating the contents of a file to a maximum size of 10MB.

Options

Field Definition Type Required
Organization Organization for the repository that contains the updated file. Dropdown TRUE
Repository Repository that contains the updated file. Dropdown TRUE
Branch Branch which contains the updated file; choices are Provide Branch or Use Default Branch.

The default branch is usually Main.

Dropdown TRUE

Input

Field Definition Type Required
Message Commit message. String TRUE
File Content Updated file content, using Base64 encoding. File TRUE
Path Path and parameter of the updated file. String TRUE
Branch Name Branch name. Only available if Provide Branch is selected from the Branch dropdown. String FALSE

Output

Field Definition Type
File Name

Name of the file.

String
File Path path+ parameter for the updated file. String
Content SHA Blob SHA of the updated file. String
HTML URL Location of the updated file. String

Related topics

GitHub connector

Workflow elements

GitHub API documentation