Skip to content

Commit 7f9cc6a

Browse files
authored
fix(workflow): pd workflow for sourcemap (#20282)
* fix(workflow): pd workflow for sourcemap
1 parent a64e838 commit 7f9cc6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pd-test-build-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
make -C protocol-designer NODE_ENV=${{ needs.determine-deploy-config.outputs.environment == 'production' && 'production' || 'development' }} OT_PD_PRERELEASE_MODE=${{ needs.determine-deploy-config.outputs.environment == 'sandbox' && '1' || '0' }}
113113
- name: 'upload sourcemaps to Sentry'
114114
# Only on production or staging releases (protocol-designer* or staging-protocol-designer*)
115-
if: github.ref_type == 'tag' && (startsWith(github.ref, 'refs/tags/protocol-designer') || startsWith(github.ref, 'refs/tags/staging-protocol-designer'))
115+
if: github.ref_type == 'tag' && (startsWith(github.ref, 'refs/tags/protocol-designer') || startsWith(github.ref, 'refs/tags/staging-protocol-designer')) && (needs.determine-deploy-config.outputs.environment == 'production' || needs.determine-deploy-config.outputs.environment == 'staging')
116116
uses: getsentry/action-release@v3
117117
env:
118118
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@@ -124,7 +124,7 @@ jobs:
124124
set_commits: auto
125125
ignore_missing: true
126126
finalize: false
127-
environment: ${{ needs.determine-deploy-config.outputs.environment == 'production' && 'production' || 'staging' }}
127+
environment: ${{ needs.determine-deploy-config.outputs.environment }}
128128
- name: 'upload github artifact'
129129
uses: actions/upload-artifact@v4
130130
with:

0 commit comments

Comments
 (0)