FirebaseExtended / FirebaseExtended/action-hosting-deploy
[BUG] When attempting to run the action multiple times for the same PR, it fails after first time
- Dominant language
- TypeScript
- Stars
- 809
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
### Error message
```
HTTP Error: 409, Channel `projects/PROJECT_NAME/sites/PROJECT_NAME/channels/pr47-main` already exists.
```
### Expected behavior
It should either:
a) Overwrite the PR's preview; or
b) Add some kind of random generated (maybe latest commit id?) string to the end (eg. `pr47-STRING_HERE-main` or something like that)
### Actual behavior
It crashes saying the site already exists.
Contributor guide
Research direction
Start by running the GitHub Action twice for the same pull request and capture the second-run failure. Trace how the action names the Firebase Hosting preview site or channel, then make repeated runs succeed using one of the expected behaviors and verify that the site is no longer rejected as already existing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- firebase, 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
- 42/100