testdriverai 4.1.39 → 4.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,10 +12,23 @@ jobs:
12
12
  name: Trigger testdriver-dev
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
+ - name: Extract short SHA
16
+ run: |
17
+ SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7)
18
+ echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV
19
+
15
20
  - name: Trigger workflow in Testdriver Dev
16
21
  uses: peter-evans/repository-dispatch@v2
17
22
  with:
18
23
  token: ${{ secrets.TESTDRIVER_DEV_TOKEN }}
19
24
  repository: testdriverai/testdriver-dev
20
25
  event-type: trigger-from-client
21
- client-payload: '{"pr_number": "${{ github.event.pull_request.number }}", "pr_sha": "${{ github.event.pull_request.head.sha }}", "api_ref": "${{ env.API_REF }}"}'
26
+ client-payload: >-
27
+ {
28
+ "pr_number": "${{ github.event.pull_request.number }}",
29
+ "pr_sha": "${{ github.event.pull_request.head.sha }}",
30
+ "api_ref": "${{ env.API_REF }}",
31
+ "repo_name": "${{ github.repository }}",
32
+ "branch_name": "${{ github.event.pull_request.head.ref }}",
33
+ "pr_short_sha": "${{ env.SHORT_SHA }}"
34
+ }
package/agent.js CHANGED
@@ -1073,7 +1073,8 @@ const start = async () => {
1073
1073
  errorLimit = 100;
1074
1074
  run(thisFile);
1075
1075
  } else if (thisCommand == "init") {
1076
- init();
1076
+ await init();
1077
+ process.exit(0);
1077
1078
  }
1078
1079
  };
1079
1080
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.1.39",
3
+ "version": "4.1.41",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {