Skip to content

Commit b5adafb

Browse files
authored
Merge pull request #6 from RapidAPI/lucas-rapid-patch-1
Add source tracking to the trigger
2 parents a7a1965 + 9a4726d commit b5adafb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Execute Tests
1616
id: tstExec
17-
uses: RapidAPI/[email protected].2
17+
uses: RapidAPI/[email protected].3
1818
with:
1919
test: 'YOUR_TEST_ID'
2020
location: 'AWS-US-WEST-2'

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function sleep(time) {
3030
core.group('Execute Test', async () => {
3131
// 1. Trigger Test
3232
const envString = ENVIRONMENT ? `&enviroment=${ENVIRONMENT}` : '';
33-
const testTrigger = (await axios.get(`${API_URL}/test/${TEST_ID}/execute?location=${LOCATION}${envString}`)).data;
33+
const testTrigger = (await axios.get(`${API_URL}/test/${TEST_ID}/execute?source=gh_action&location=${LOCATION}${envString}`)).data;
3434
const reportUrl = testTrigger.reportUrl;
3535
console.log(testTrigger.message);
3636
core.setOutput("reportUrl", reportUrl);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "RapidAPI-testing-github-action",
3-
"version": "1.0.0",
3+
"version": "0.0.3",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)