Open clockwork189 opened 1 year ago
Any fixes for this one?
I wonder if this isn't actually something with the Firebase Action, but GitHub Actions itself thinking that your projectID is a secret value? If you pass it in as an environment variable to the workflow and call it that way, does anything change?
Something like
jobs:
build_and_generate_previce:
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}"
env:
project-id: "metricwire.com:api-project-737636097603"
runs-on: ubuntu-latest
environment: Development-App
steps:
- uses: actions/checkout@v3
# - run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAGING }}"
projectId: ${{ env.project-id }}
target: "app-staging"
I wonder if this isn't actually something with the Firebase Action, but GitHub Actions itself thinking that your projectID is a secret value? If you pass it in as an environment variable to the workflow and call it that way, does anything change?
Something like
jobs: build_and_generate_previce: if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}" env: project-id: "metricwire.com:api-project-737636097603" runs-on: ubuntu-latest environment: Development-App steps: - uses: actions/checkout@v3 # - run: npm ci && npm run build - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}" firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_STAGING }}" projectId: ${{ env.project-id }} target: "app-staging"
I don't think so because I have another project with the projectId like that and runs fine.
@clockwork189 did you find any fix?
I am running into a very weird bug that has had me stumped. The issue that I have is if I use my staging project Id: "metricwire.com:api-project-737636097603" the firebase build will fail. My guess is because it is not getting the project Id in th e build phase as indicated by this part in the debug:
I tried changing my projectId to anything else, literally anything else eg: "test", "staging", "abc" and while the build still fails (because I am using a non-existent project which I am aware of), the error log still shows:
So my current problem is that if my projectId is "metricwire.com:api-project-737636097603" I get the *** in the build step for --project and it fails otherwise it shows the proper project Id in the build debug.
My current workaround is to create a completely different firebase project for staging, but it is still curious that this issue occurs.
Action config
Error message
Expected behavior
Successful Build
Actual behavior
Build Fails