From c3502e754fc85347ea2b33a6b1a2fffdf2f3cd50 Mon Sep 17 00:00:00 2001 From: Francesco Pham Date: Wed, 11 Dec 2024 17:47:12 +0100 Subject: [PATCH] github-ci: substituting bundleName to match signing materials Signed-off-by: Francesco Pham --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c20d1f5..51b9634 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,14 @@ jobs: echo "=== Extracted Signing Materials ===" tree .secret -L 4 + - name: Modify bundleName in app.json5 + run: | + echo "Modifying bundleName in app.json5 to match the one in the signature materials" + echo "this is a temporary workaround for using the same signature materials stored" + echo "in GitHub secrets for multiple apps." + echo "See: https://github.com/eclipse-oniro4openharmony/oniro-planning/issues/5#issuecomment-2538648996" + sed -i '' 's/"bundleName": "[^"]*"/"bundleName": "com.example.oniromathpunching"/' ./AppScope/app.json5 + - name: Set up tools and dependencies uses: eclipse-oniro4openharmony/oh-app-action@main