Skip to content

Commit bc99bc0

Browse files
committed
Setting up variables for re-run
1 parent c3c46c0 commit bc99bc0

File tree

7 files changed

+10824
-2003
lines changed

7 files changed

+10824
-2003
lines changed

setup-env/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,26 @@ inputs:
1313
project-name:
1414
description: 'Project name for the tests'
1515
required: false
16+
rerun-attempt:
17+
description: 'ReRun attempt'
18+
required: false
19+
default: 'none'
20+
repository:
21+
description: 'GitHub context - Repository'
22+
required: false
23+
default: 'none'
24+
run-id:
25+
description: 'GitHub context - Run_ID'
26+
required: false
27+
default: 'none'
28+
github-token:
29+
description: 'GitHub Token for authentication'
30+
required: false
31+
default: 'none'
32+
github-app:
33+
description: 'BrowserStack Github App'
34+
required: false
35+
default: 'bstack-gha-app[bot]'
1636
runs:
1737
using: 'node20'
1838
main: 'dist/index.js'

setup-env/config/constants.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@ module.exports = {
44
ACCESS_KEY: 'access-key',
55
BUILD_NAME: 'build-name',
66
PROJECT_NAME: 'project-name',
7+
RERUN_ATTEMPT: 'rerun-attempt',
8+
REPOSITORY: 'repository',
9+
RUN_ID: 'run-id',
10+
GITHUB_TOKEN: 'github-token',
11+
GITHUB_APP: 'github-app',
712
},
813

914
ENV_VARS: {
1015
BROWSERSTACK_USERNAME: 'BROWSERSTACK_USERNAME',
1116
BROWSERSTACK_ACCESS_KEY: 'BROWSERSTACK_ACCESS_KEY',
1217
BROWSERSTACK_BUILD_NAME: 'BROWSERSTACK_BUILD_NAME',
13-
BROWSERSTACK_PROJECT_NAME: 'BROWSERSTACK_PROJECT_NAME',
18+
BROWSERSTACK_PROJECT_NAME: 'BROWSERSTACK_PROJECT_NAME'
19+
},
20+
21+
BROWSERSTACK_TEMPLATE: {
22+
DETAILS_API_URL: 'https://integrate.browserstack.com/api/ci-tools/v1/builds/{runId}/rebuild/details?tool=github-actions&as_bot=true',
1423
},
1524
};

0 commit comments

Comments
 (0)