Skip to content

Commit

Permalink
Trying out using separate environment names in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Jan 13, 2022
1 parent caa654a commit a70e616
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a70e616

Please sign in to comment.