Use this action to trigger a GitHub Actions workflow. GitHub Actions (GHA) is an automation platform provided by GitHub.
GitHub action is integrated with publish test results and supports multiple test types.
Input name | Data type | Required? | Description | ||
---|---|---|---|---|---|
|
String |
No |
The GitHub server URL.
If not specified, uses |
||
|
String |
Yes |
The GitHub token. |
||
|
String |
Yes |
The GitHub organization name. |
||
|
String |
Yes |
The GHA repository name. |
||
|
String |
Yes |
The GHA branch name. |
||
|
String |
Yes |
The GHA workflow name.
|
||
|
String |
No |
Specifies the test type for generating a job test report. Supported test types are JUnit ( |
||
|
String |
No |
Specifies the test report file location.
Accepts pattern matching, such as |
||
|
JSON |
No |
Any additional parameters, formatted as JSON data in key/value pairs. |
In your YAML file, add:
jobs:
run-gha-workflow:
steps:
- name: Run GHA workflow
uses: cloudbees-io/ghactions-run-workflow@v2
with:
url: ${{ vars.GITHUB_URL }}
token: ${{ secrets.GHA_TOKEN }}
org-name: my_org
repo-name: my_repo
branch-name: main
workflow-name: BUILD_PARAM
test-type: Junit
test-result-location: junit-service*
parameters: '{"ENV_NAME":"TEST"}'
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.