Use this action to trigger a workflow in CircleCI, a cloud-based CI/CD platform.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
No |
The CircleCI server URL.
If not specified, uses |
|
String |
Yes |
The CircleCI token. |
|
String |
Yes |
The CircleCI source code management system used.
Supported are GitHub ( |
|
String |
Yes |
The CircleCI organization name. |
|
String |
Yes |
The CircleCI repository name. |
|
String |
Yes |
The CircleCI branch name. |
|
String |
Yes |
The CircleCI 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:
my-circleci-workflow:
steps:
- name: Run a CircleCI workflow
uses: cloudbees-io/circleci-run-workflow@v2
with:
url: ${{ vars.CIRCLECI_URL }}
token: ${{ secrets.CIRCLECI_TOKEN }}
vcs-name: gh
org-name: testOrg
repo-name: repo1
branch-name: test-branch
workflow-name: workflow1
test-type: Junit
test-result-location: junit-service*
parameters: '{}'This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.