FirebaseExtended / action-hosting-deploy

Automatically deploy shareable previews for your Firebase Hosting sites
https://firebase.google.com/docs/hosting/github-integration
Apache License 2.0
705 stars 202 forks source link

[BUG] When attempting to run the action multiple times for the same PR, it fails after first time #110

Open HarrisonMayotte opened 3 years ago

HarrisonMayotte commented 3 years ago

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.