From 14c86764f42df275238ebaa15fa7acbfde53b325 Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Tue, 7 Jan 2025 11:26:24 +0100 Subject: [PATCH] chore: :construction_worker: Update github action to generate Beta version for Chrome Extension --- .github/workflows/build-chrome-ext.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build-chrome-ext.yml b/.github/workflows/build-chrome-ext.yml index ca567100b..1923004a2 100644 --- a/.github/workflows/build-chrome-ext.yml +++ b/.github/workflows/build-chrome-ext.yml @@ -29,6 +29,21 @@ jobs: - name: Install Flutter dependencies run: flutter pub get + - name: Check if Beta Version + id: check_beta + run: | + if [[ "${{ github.event.release.tag_name }}" == *"beta"* ]]; then + echo "is_beta=true" >> $GITHUB_OUTPUT + else + echo "is_beta=false" >> $GITHUB_OUTPUT + fi + + - name: Modify Manifest for Beta + if: steps.check_beta.outputs.is_beta == 'true' + run: | + jq '.name += " (Beta)"' manifest.json > manifest_tmp.json + mv manifest_tmp.json manifest.json + - name: Build Chrome Extension run: bash ./scripts/build_chrome_extension.sh