Skip to content

Commit d3d8f94

Browse files
Merge pull request #8 from StreetSupport/feature/3001-set-up-sentry-error-monitoring-and-logging
Update yml file
2 parents 53532e6 + 3a4ddbd commit d3d8f94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/azure-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
2323
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
2424
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
25-
SENTRY_ENV: ${{ github.ref_name == 'main' && 'production' || 'staging' }}
25+
SENTRY_ENV: ${{ github.ref_name == 'main' && 'staging' || 'staging' }}
2626

2727
steps:
2828
- uses: actions/checkout@v4
@@ -53,7 +53,7 @@ jobs:
5353
runs-on: ubuntu-latest
5454
needs: build
5555
# Update to 'Production' || 'Staging' when configure additional environment
56-
environment: ${{ github.ref_name == 'main' && 'Staging' || 'Staging' }}
56+
environment: ${{ github.ref_name == 'main' && 'staging' || 'staging' }}
5757
permissions:
5858
id-token: write # Required for OIDC
5959
contents: read # Required for actions/checkout
@@ -77,5 +77,5 @@ jobs:
7777
uses: azure/webapps-deploy@v3
7878
with:
7979
app-name: ${{ secrets.AZURE_APP_NAME }}
80-
slot-name: 'staging'
80+
slot-name: ${{ github.ref_name == 'main' && 'production' || 'production' }}
8181
package: .

0 commit comments

Comments
 (0)