FirebaseExtended / FirebaseExtended/action-hosting-deploy

[BUG] Error (auth/invalid-api-key) on hosting PR

Open
#271 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
809
Forks
232
PR merge metrics
No merged PRs in 30d

Description

### Action config

firebase-hosting-pull-request.yml
```
name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NEED_CODE }}'
projectId: need-code
```

### Error message

Screenshot 2023-03-21 at 9 39 12 AM

### Expected behavior

The auto PR preview link should be deployed without an error
Screenshot 2023-03-21 at 9 41 20 AM

Link: https://need-code--pr12-update-firebase-depl-7pxhj1zl.web.app/
### Actual behavior

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.