aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-08-30 16:30:51 +0300
committerGitHub <[email protected]>2021-08-30 16:30:51 +0300
commita7e64b5a4f1b78c2a843c22ddb9bd427b45557cf (patch)
tree7b17340b185a047bfe4b408f74d2b51082121d43
parent2a0f7078d4381f1fd4fd30e512c5ca8882d5362b (diff)
downloadbootstrap-a7e64b5a4f1b78c2a843c22ddb9bd427b45557cf.tar.xz
bootstrap-a7e64b5a4f1b78c2a843c22ddb9bd427b45557cf.zip
Add GitHub SHA in BrowserStack build ID. (#34077)
-rw-r--r--.github/workflows/browserstack.yml1
-rw-r--r--js/tests/karma.conf.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml
index ffa594a77..f689a6f35 100644
--- a/.github/workflows/browserstack.yml
+++ b/.github/workflows/browserstack.yml
@@ -34,3 +34,4 @@ jobs:
env:
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
+ GITHUB_SHA: "${{ github.sha }}"
diff --git a/js/tests/karma.conf.js b/js/tests/karma.conf.js
index 67b60f15e..1d4b0d3e4 100644
--- a/js/tests/karma.conf.js
+++ b/js/tests/karma.conf.js
@@ -108,7 +108,7 @@ if (BROWSERSTACK) {
conf.browserStack = {
username: ENV.BROWSER_STACK_USERNAME,
accessKey: ENV.BROWSER_STACK_ACCESS_KEY,
- build: `bootstrap-${new Date().toISOString()}`,
+ build: `bootstrap-${ENV.GITHUB_SHA ? ENV.GITHUB_SHA.slice(0, 7) + '-' : ''}${new Date().toISOString()}`,
project: 'Bootstrap',
retryLimit: 2
}