GitHub for Workflows actions
Latest Dynatrace
The following workflow actions are available for the GitHub for Workflows integration.
Get content
The Get content action returns the content of an existing file in the repository.
Input
.git
extension. The name is not case-sensitive.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.
Input
.git
extension. The name is not case-sensitive.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.
Input
.git
extension. The name is not case-sensitive.Output
The action returns the fileMetadata
property that contains the full response of the corresponding GitHub API endpoint.
Create pull request
The Create pull request action creates a pull request for an existing branch and the specified target branch (for example, main
).
Input
Output
The action returns the pullRequest
property that contains the full response of the corresponding GitHub API endpoint.
Get pull request
The Get pull request action returns details about the specified pull request.
Input
.git
extension. The name is not case-sensitive.Output
The action returns the pullRequest
property that contains the full response of the corresponding GitHub API endpoint.
List pull requests
The List pull requests action returns a list of pull requests that match the specified criteria. The limit of 30 pull requests applies.
Input
.git
extension. The name is not case-sensitive.Output
The action returns the pullRequest
property that contains the full response of the corresponding GitHub API endpoint.
Merge pull request
The Merge pull request action merges the specified pull request.
Input
.git
extension. The name is not case-sensitive.Output
The action returns the mergeStatus
property that contains the full response of the corresponding GitHub API endpoint.