Skip to content

Commit 3cbde4f

Browse files
authored
ci: use unique channel ID per PR for preview deployments (#87)
Use 'pr-{number}' as the channelId instead of 'live' so each pull request gets its own isolated preview deployment URL. This prevents concurrent PR deployments from overwriting each other on the sandbox Firebase project. Preview channels are automatically expired by Firebase Hosting when the PR is closed.
1 parent d7dde1f commit 3cbde4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/firebase-hosting-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
with:
2323
repoToken: '${{ secrets.GITHUB_TOKEN }}'
2424
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MLAB_SANDBOX }}'
25-
channelId: live
25+
channelId: 'pr-${{ github.event.number }}'
2626
projectId: mlab-sandbox

0 commit comments

Comments
 (0)