Skip to content

Commit

Permalink
Add GitHub SHA in BrowserStack build ID. (#34077)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Aug 30, 2021
1 parent 2a0f707 commit a7e64b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
2 changes: 1 addition & 1 deletion js/tests/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a7e64b5

Please sign in to comment.