I'm using the FirebaseExtended/action-hosting-deploy@v0 GitHub Action to deploy a Flutter web application to Firebase Hosting. Every time I push changes to my code, the action runs and fails with an HTTP 400 error. However, despite the failure, the new changes are actually reflected on the live production site.
Project type: Flutter web application (build output is in build/web).
Action used: FirebaseExtended/action-hosting-deploy@v0.
Firebase project ID: hotel-delivery-65492.
Trigger: The workflow runs on push to the main branch.
Local behavior: If I run firebase deploy --only hosting locally, it works perfectly without any errors.
part of my workflow file:
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_HOTEL_DELIVERY_65492 }}
channelId: live
projectId: hotel-delivery-65492
Error:
Request to https://firebasehosting.googleapis.com/v1beta1/projects/-/sites/app-teste-65492/channels/live/releases?versionName=projects%2F43565238095%2Fsites%2Fapp-teste-65492%2Fversions%2Fffg60o2a0014032323 had HTTP Error: 400, Can't release to projects/-/sites/app-teste-65492/channels/live: supplied version projects/43065038795/sites/app-teste-65492/versions/ffg632a044032123 is the current active version.
I'm using the FirebaseExtended/action-hosting-deploy@v0 GitHub Action to deploy a Flutter web application to Firebase Hosting. Every time I push changes to my code, the action runs and fails with an HTTP 400 error. However, despite the failure, the new changes are actually reflected on the live production site.
Project type: Flutter web application (build output is in build/web).
Action used: FirebaseExtended/action-hosting-deploy@v0.
Firebase project ID: hotel-delivery-65492.
Trigger: The workflow runs on push to the main branch.
Local behavior: If I run firebase deploy --only hosting locally, it works perfectly without any errors.
part of my workflow file:
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_HOTEL_DELIVERY_65492 }}
channelId: live
projectId: hotel-delivery-65492
Error:
Request to https://firebasehosting.googleapis.com/v1beta1/projects/-/sites/app-teste-65492/channels/live/releases?versionName=projects%2F43565238095%2Fsites%2Fapp-teste-65492%2Fversions%2Fffg60o2a0014032323 had HTTP Error: 400, Can't release to projects/-/sites/app-teste-65492/channels/live: supplied version projects/43065038795/sites/app-teste-65492/versions/ffg632a044032123 is the current active version.