Update File Content
Update a file in GitHub.
This card supports updating the contents of a file to a maximum size of 10 MB.
Options
Field | Definition | Type | Required |
---|---|---|---|
Organization |
Choose the organization that owns the repository containing the file you want to update. The dropdown list displays the organizations for the authenticated user. The list is limited to 100 organizations. If the repository is under a personal account, select the -- Not In Org -- option. |
Dropdown |
TRUE |
Repository |
Choose the repository that contains the file you want to update. The dropdown list displays the repositories for the selected Organization. If you select the -- Input Repo Full Name -- option, then the card ignores the Organization selection and you must enter the full name of the repository in the Repository input field. |
Dropdown |
TRUE |
Branch |
Select the branch that contains the file you want to update. The options are Provide Branch or Use Default Branch. The default branch is usually Main. |
Dropdown |
TRUE |
Input
Field | Definition | Type | Required |
---|---|---|---|
Repository |
|||
Full Name |
The full name of the repository. This input field appears when you select -- Input Repo Full Name -- as the Repository option. The name must be formatted as <org_name>/<repo_name> if the repository is within an organization, or <owner_name>/<repo_name> if the repository is under a personal account. The card returns an error if the repository doesn't exist or the user doesn't have permission to access the repository. |
Text |
TRUE |
File |
|||
Message |
The commit message for the change. |
Text |
TRUE |
File Content |
The updated file content, encoded using Base 64. |
File |
TRUE |
Path |
The path and parameter of the updated file. |
Text |
TRUE |
Branch Name |
This field appears if you choose Provide Branch as the Branch option. Otherwise, the change is made using the default branch for the repository. |
Text |
FALSE |
Output
Field | Definition | Type |
---|---|---|
File Name |
Name of the file. |
Text |
File Path |
The path and parameter for the updated file. |
Text |
Content SHA |
Blob SHA of the updated file. |
Text |
HTML URL |
The location of the updated file. |
Text |