Account owner of the repository (private user or organization).
required
Repository
The name of the repository without the .git extension. The name is not case-sensitive.
required
File path
The file path to a single, existing file. A directory path is not supported.
required
Reference
The name of the commit, branch or tag. If not set, the repository's default branch is used.
optional
Output
The action returns the content property that contains the plain text content of an existing file in the repository.
Create or replace file
The Create or replace file action creates a new file with the specified content or replaces an existing one. Next, it commits the change to a newly created branch using the specified source branch or the specified existing branch.
Account owner of the repository (private user or organization).
required
Repository
The name of the repository without the .git extension. The name is not case-sensitive.
required
Create new branch
Select this option if you want the change to be made in a new branch.
optional
Commit to an existing branch
Select this option if you're going to use an existing branch for the change.
optional
Source branch
The source branch on which the new branch is based (for example, "main").
optional
Branch
The new or existing branch you want to commit to.
required
File path
The relative path to the file. A directory path is not supported. Existing files will be overwritten.
required
File content
The full content of the file. Existing files will be overwritten.
required
Commit message
The git commit message for the change.
required
Output
The action returns the fileMetadata property that contains the full response of the corresponding GitHub API endpoint.
Delete file
The Delete file action deletes an existing file in the repository and commits the change to either a newly created branch using the specified source branch as a basis or uses the specified existing branch.