From a70e616815d581802dbd3af7c3b75f5207bf39f2 Mon Sep 17 00:00:00 2001 From: Jonathan Gillespie Date: Thu, 13 Jan 2022 15:03:04 -0500 Subject: [PATCH] Trying out using separate environment names in GitHub Actions --- .github/workflows/deploy.yml | 12 ++++++------ .../build/create-and-install-package-version.ps1 | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0e9604671..fda08eb71 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,7 +43,7 @@ jobs: code-quality-tests: name: 'Run Code Quality Tests' runs-on: ubuntu-latest - environment: Test + environment: 'Code Quality Test' steps: - name: 'Checkout source code' uses: actions/checkout@v2 @@ -88,7 +88,7 @@ jobs: name: 'Run LWC Tests' needs: [code-quality-tests] runs-on: ubuntu-latest - environment: Test + environment: 'LWC Test' steps: - name: 'Checkout source code' uses: actions/checkout@v2 @@ -121,7 +121,7 @@ jobs: name: 'Run Base Scratch Org Tests' needs: [code-quality-tests] runs-on: ubuntu-latest - environment: Test + environment: 'Base Scratch Org' steps: - name: 'Checkout source code' uses: actions/checkout@v2 @@ -168,7 +168,7 @@ jobs: name: 'Run Experience Cloud Scratch Org Tests' needs: [code-quality-tests] runs-on: ubuntu-latest - environment: Test + environment: 'Experience Cloud Scratch Org' steps: - name: 'Checkout source code' uses: actions/checkout@v2 @@ -234,7 +234,7 @@ jobs: needs: [lwc-tests, base-scratch-org-tests, experience-cloud-scratch-org-tests] if: ${{ github.ref != 'refs/heads/main' }} runs-on: ubuntu-latest - environment: Test + environment: 'Demo Org' steps: - name: 'Checkout source code' uses: actions/checkout@v2 @@ -288,7 +288,7 @@ jobs: needs: [lwc-tests, base-scratch-org-tests, experience-cloud-scratch-org-tests] if: ${{ github.ref != 'refs/heads/main' }} runs-on: ubuntu-latest - environment: Test + environment: 'Demo Org' steps: - name: 'Checkout source code' uses: actions/checkout@v2 diff --git a/config/scripts/build/create-and-install-package-version.ps1 b/config/scripts/build/create-and-install-package-version.ps1 index e0cb31ef7..5c2a5fced 100644 --- a/config/scripts/build/create-and-install-package-version.ps1 +++ b/config/scripts/build/create-and-install-package-version.ps1 @@ -113,7 +113,7 @@ function Update-README-Package-Version-Id { $packageVersionId = "$packageVersionId".Trim() # Since there are links for both the unlocked & managed packages, the unlocked package buttons are used to ensure the correct link is updated - $sandboxUnlockedPackageReplacement = "btn-install-unlocked-package-sandbox.png)]https://test.salesforce.com/packaging/installPackage.apexp?p0=$packageVersionId" + $sandboxUnlockedPackageReplacement = "btn-install-unlocked-package-sandbox.png)](https://test.salesforce.com/packaging/installPackage.apexp?p0=$packageVersionId" ((Get-Content -path $targetreadme -Raw) -replace "btn-install-unlocked-package-sandbox.png\)\]\(https:\/\/test.salesforce.com\/packaging\/installPackage.apexp\?p0=.{0,18}", $sandboxUnlockedPackageReplacement) | Set-Content -Path $targetreadme -NoNewline $productionUnlockedPackageReplacement = "btn-install-unlocked-package-production.png)](https://login.salesforce.com/packaging/installPackage.apexp?p0=$packageVersionId" ((Get-Content -path $targetreadme -Raw) -replace "btn-install-unlocked-package-production.png\)\]\(https:\/\/login.salesforce.com\/packaging\/installPackage.apexp\?p0=.{0,18}", $productionUnlockedPackageReplacement) | Set-Content -Path $targetreadme -NoNewline