Retrieves the most recent GitHub Actions workflow run for a specific workflow. Useful when the exact Run ID is unknown — for example, immediately after triggering a run. Always returns at most one run.
For authentication setup, see GitHub workflow run actions.
The following inputs are available for this action.
Input | Type | Description | Example |
|---|---|---|---|
token | String | Required. GitHub Personal Access Token stored as a secret. Fine-grained PATs require Actions: read permission. Classic PATs require repo scope. |
|
owner | String | Required. The account owner of the repository (user or organization login). Case-insensitive. |
|
repo | String | Required. Repository name without the .git suffix. Case-insensitive. |
|
workflowId | String | Required. The workflow file name (for example, |
|
branch | String | Optional. Filter by branch name. Useful to narrow to runs triggered on a specific branch. |
|
event | String | Optional. Filter by triggering event type (for example, |
|
status | String | Optional. Filter by run status or conclusion. Allowed values: |
|
actor | String | Optional. Filter by the GitHub login of the user who triggered the workflow. |
|
headSHA | String | Optional. Only return runs with this specific head commit SHA. |
|
excludePullRequests | Boolean | Optional. If |
|
selectors | List | Optional. JQ selectors to extract values from the response. The run is at |
|
This action returns the following outputs.
Output | Type | Example |
|---|---|---|
response | Object | |
success | Boolean |
|
errorMessage | String | Contains the GitHub API error response body. |
Workflow example |
|---|
|