File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
function getEnv ( ) {
2
- const { GITHUB_HEAD_REF : branch = 'main' } = process . env ;
2
+ let { GITHUB_HEAD_REF : branch } = process . env ;
3
+ if ( ! branch ) {
4
+ branch = 'main' ;
5
+ }
3
6
return branch === 'local' ? 'http://localhost:3000' : `https://${ branch } --da-live--adobe.hlx.live` ;
4
7
}
5
8
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ export function getTestSheetURL(testIdentifier, workerInfo) {
46
46
* @returns The age in ms or null if the file name does not match the pattern.
47
47
*/
48
48
export function getTestResourceAge ( fileName ) {
49
- const re = / p w - \w + ( - t 1 ) * - ( \w + ) - \w + / ;
49
+ const re = / p w - \w + - ( \w + ) - \w + / ;
50
50
const res = re . exec ( fileName ) ;
51
51
if ( res ) {
52
- return parseInt ( res [ 2 ] , 36 ) ;
52
+ return parseInt ( res [ 1 ] , 36 ) ;
53
53
}
54
54
return null ;
55
55
}
You can’t perform that action at this time.
0 commit comments