From bf884ac279443c4e574f358657e769364ceccb94 Mon Sep 17 00:00:00 2001 From: MtnBurrit0 <77340197+mimartin12@users.noreply.github.com> Date: Wed, 28 Feb 2024 12:01:15 -0700 Subject: [PATCH] Add git hash to all lower environment builds (#8142) --- .github/workflows/build-web.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml index 9ebd056c4c..77dd38d739 100644 --- a/.github/workflows/build-web.yml +++ b/.github/workflows/build-web.yml @@ -76,14 +76,18 @@ jobs: npm_command: "dist:bit:selfhost" - name: "cloud-QA" npm_command: "build:bit:qa" + git_metadata: true - name: "ee" npm_command: "build:bit:ee" + git_metadata: true - name: "cloud-euprd" npm_command: "build:bit:euprd" - name: "cloud-euqa" npm_command: "build:bit:euqa" + git_metadata: true - name: "cloud-usdev" npm_command: "build:bit:usdev" + git_metadata: true steps: - name: Checkout repo @@ -109,9 +113,9 @@ jobs: - name: Install dependencies run: npm ci - - name: Setup QA metadata + - name: Add Git metadata to build version working-directory: apps/web - if: matrix.name == 'cloud-QA' + if: matrix.git_metadata run: | VERSION=$( jq -r ".version" package.json) jq --arg version "$VERSION+${GITHUB_SHA:0:7}" '.version = $version' package.json > package.json.tmp