From 2d3cc87fac895360c4adf5a24e9997bf60063414 Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Mon, 5 Aug 2024 12:55:26 +0200 Subject: [PATCH] Update beta-release.yaml --- .github/workflows/beta-release.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/beta-release.yaml b/.github/workflows/beta-release.yaml index a1a3528..5573f54 100644 --- a/.github/workflows/beta-release.yaml +++ b/.github/workflows/beta-release.yaml @@ -22,6 +22,21 @@ jobs: - name: Checkout main branch run: git checkout main + - name: Update manifest-beta.json + run: | + VERSION=${{ github.ref }} # Extract version from tag + VERSION=${VERSION#refs/tags/} # Remove refs/tags/ prefix + jq --arg version "$VERSION" '.version = $version' manifest-beta.json > manifest-beta-temp.json + mv manifest-beta-temp.json manifest-beta.json + + - name: Commit and push changes + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add manifest-beta.json + git commit -m "Update manifest-beta.json to version $VERSION" + git push origin main + - name: npm build run: | npm install