FirebaseExtended / FirebaseExtended/action-hosting-deploy
[BUG] Deploy target not configured for project
- Dominant language
- TypeScript
- Stars
- 809
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
### Action config
```
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_MABROUK_IMS }}"
channelId: live
projectId: "${{ secrets.PROJECT_ID }}"
target: "${{ secrets.TARGET_ID }}"
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
```
### Error message
```
/usr/local/bin/npx firebase-tools deploy --only hosting:*** --project *** --json
***
"status": "error",
"error": "Deploy target \u001b[1m***\u001b[22m not configured for project \u001b[1m***\u001b[22m. Configure with:\n\n firebase target:***ly hosting *** "
***
***
"status": "error",
"error": "Deploy target \u001b[1m***\u001b[22m not configured for project \u001b[1m***\u001b[22m. Configure with:\n\n firebase target:***ly hosting *** "
***
The process '/usr/local/bin/npx' failed with exit code 1
Retrying deploy with the --debug flag for better error output
/usr/local/bin/npx firebase-tools deploy --only hosting:*** --project *** --debug
[2021-04-10T16:23:03.389Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[2021-04-10T16:23:03.485Z] [iam] checking project *** for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[2021-04-10T16:23:03.487Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/***:testIamPermissions
***"permissions":["firebase.projects.get","firebasehosting.sites.update"]***
[2021-04-10T16:23:03.556Z] <<< HTTP RESPONSE 200 ***"content-type":"***lication/json; charset=UTF-8","vary":"X-Origin, Referer, Origin,Accept-Encoding","date":"Sat, 10 Apr 2021 16:23:03 GMT","server":"ESF","cache-control":"private","x-xss-protection":"0","x-frame-options":"SAMEORIGIN","x-content-type-options":"nosniff","server-timing":"gfet4t7; dur=42","alt-svc":"h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"","accept-ranges":"none","transfer-encoding":"chunked"***
[2021-04-10T16:23:03.559Z] >>> [apiv2][query] GET https://firebase.googleapis.com/v1beta1/projects/*** [none]
[2021-04-10T16:23:03.976Z] <<< [apiv2][status] GET https://firebase.googleapis.com/v1beta1/projects/*** 200
[2021-04-10T16:23:03.976Z] <<< [apiv2][body] GET https://firebase.googleapis.com/v1beta1/projects/*** ***"projectId":"***","projectNumber":"21623471325","displayName":"***","name":"projects/***","resources":***"hostingSite":"***","realtimeDatabaseInstance":"***","storageBucket":"***.***spot.com","locationId":"europe-west"***,"state":"ACTIVE"***
```
### Unexpected behavior
When I push .firebaserc to my repo, action succeeds. When I use projectId and target, action fails.
Contributor guide
Assessment
This issue has not been assessed yet.