FirebaseExtended / FirebaseExtended/action-hosting-deploy

Only one preview url is generated for multisite

Open
#143 1 comment 9 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
809
Forks
232
PR merge metrics
No merged PRs in 30d

Description

With 2 workflow.yml files, each one meant to deploy to a hosting channel for a site on a firebase project, only one comment post with deploy preview url is possible on the pull_request. Also, the preview url of the workflow that finishes last overwrites that posted by the first one.

```yaml
# workflow 1
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
projectId: '${{ secrets.PROJECT_ID }}'
channelId: '${{ gitHub.sha }}-c1'
target: TARGET_NAME_1
```

```yaml
# workflow 2
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT }}'
projectId: '${{ secrets.PROJECT_ID }}'
channelId: '${{ gitHub.sha }}-c2'
target: TARGET_NAME_2
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the two workflow.yml examples and inspect how the action creates or updates pull-request comments. Confirm that both hosting preview URLs are retained instead of one overwriting the other; the issue does not name specific source files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.