Skip to content

Commit ae05706

Browse files
committed
fix REF variable
1 parent 9997264 commit ae05706

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

build/benchmark.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ variables:
105105

106106
${{ if eq(parameters.TS_GO, true) }}:
107107
REPO: 'typescript-go'
108-
REF: $[ resources.repositories['typescript-go'].ref ]
108+
REF: $[ replace(resources.repositories['typescript-go'].ref, 'heads/../', '') ]
109109
TSGOFLAG: '--tsgo'
110110
${{ else }}:
111111
REPO: 'TypeScript'
112-
REF: $[ resources.repositories['TypeScript'].ref ]
112+
REF: $[ replace(resources.repositories['TypeScript'].ref, 'heads/../', '') ]
113113
TSGOFLAG: ''
114114

115115
PRETTY_REF: $[ replace(replace(replace(replace(variables['REF'], '/merge', ''), 'refs/pull/', 'pr.'), 'refs/heads/', ''), '/', '_') ]
116-
IS_PR: $[ and(contains(variables['REF'], 'refs/'), contains(variables['REF'], '/pull/')) ]
116+
IS_PR: $[ startsWith(variables['REF'], 'refs/pull/') ]
117117
# True if this run should demand a baseline machine.
118118
USE_BASELINE_MACHINE: $[ or(eq(variables['Build.Reason'], 'ResourceTrigger'), ${{ parameters.HISTORICAL_RUN }}) ]
119119
# Only upload if the provided ref is explicitly main/release-* and we've run on the baseline machine.

0 commit comments

Comments
 (0)