From 09330077f4decdb25443fbea1cbc25fa82adc924 Mon Sep 17 00:00:00 2001 From: Philippe Ozil Date: Tue, 8 Oct 2024 13:28:37 +0200 Subject: [PATCH] ci: add namespace --- .github/workflows/ci-pr.yml | 5 +++++ .github/workflows/ci.yml | 5 +++++ .github/workflows/packaging.yml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index d51ea52..365c887 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -96,6 +96,11 @@ jobs: - name: 'Authenticate Dev Hub' run: sf org login sfdx-url -f ./DEVHUB_SFDX_URL.txt -a devhub -d + # Add namespace to project config + - name: Add namespace to project config + run: | + sed -i 's,"namespace": "","namespace": "sfq",' sfdx-project.json + # Create prerelease scratch org - name: 'Create prerelease scratch org' if: ${{ env.IS_PRERELEASE }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e671425..c2a8f50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -90,6 +90,11 @@ jobs: - name: 'Authenticate Dev Hub' run: sf org login sfdx-url -f ./DEVHUB_SFDX_URL.txt -a devhub -d + # Add namespace to project config + - name: Add namespace to project config + run: | + sed -i 's,"namespace": "","namespace": "sfq",' sfdx-project.json + # Create scratch org - name: 'Create scratch org' run: sf org create scratch -f config/project-scratch-def.json -a scratch-org -d -y 1 diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 6af99ea..171859d 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -46,7 +46,7 @@ jobs: # Add namespace to project config - name: Add namespace to project config run: | - sed -i 's,"namespace": "","namespace": "sfqz",' sfdx-project.json + sed -i 's,"namespace": "","namespace": "sfq",' sfdx-project.json # Remove unpackageable metadata - name: Remove unpackageable metadata (PlatformEventChannelMember)