fix: add back app to the build context

This commit is contained in:
Opender Singh 2021-03-03 11:41:23 +13:00
parent 5ba91ceb21
commit 847bb58aec

View File

@ -33,10 +33,12 @@ function fromGitRef() {
const gitRef = GIT_TAG || GITHUB_REF || TRAVIS_TAG || TRAVIS_CURRENT_BRANCH || ''; const gitRef = GIT_TAG || GITHUB_REF || TRAVIS_TAG || TRAVIS_CURRENT_BRANCH || '';
const tagMatch = gitRef.match(/(core)@(\d{4}\.\d+\.\d+(-(alpha|beta)\.\d+)?)$/); const tagMatch = gitRef.match(/(core)@(\d{4}\.\d+\.\d+(-(alpha|beta)\.\d+)?)$/);
const app = tagMatch ? tagMatch[1] : null;
const version = tagMatch ? tagMatch[2] : null; const version = tagMatch ? tagMatch[2] : null;
const channel = tagMatch ? tagMatch[4] : 'stable'; const channel = tagMatch ? tagMatch[4] : 'stable';
return { return {
app,
channel, channel,
version, version,
gitRef, gitRef,