5656 - uses : ./ # Uses local action for testing
5757 with :
5858 environment : ${{ github.event_name == 'push' && github.ref_name || inputs.environment }}
59- service_account_json : ${{ secrets[format('FIREBASE_{0}_SERVICE_ACCOUNT', github.event_name == 'push' && github.ref_name || inputs.environment)] }}
6059 project_id : ${{ vars[format('FIREBASE_{0}_PROJECT_ID', github.event_name == 'push' && github.ref_name || inputs.environment)] }}
6160` ` `
6261
@@ -67,18 +66,21 @@ When using in your own repository, reference a specific version:
6766 with :
6867 functions_dir : ' src/functions' # Default is 'functions'
6968 environment : staging
70- service_account_json : ${{ secrets.FIREBASE_STAGING_SERVICE_ACCOUNT }}
7169 project_id : my-project-staging
7270` ` `
7371
72+ Note: The action requires the following secrets to be defined in your repository:
73+
74+ - ` FIREBASE_STAGING_SERVICE_ACCOUNT`: Service account JSON for staging environment
75+ - `FIREBASE_PROD_SERVICE_ACCOUNT` : Service account JSON for production environment
76+
7477# # Inputs
7578
76- | Input | Description | Required | Default |
77- | ---------------------- | ------------------------------------------------- | -------- | ----------- |
78- | ` functions_dir` | Directory containing functions and pyproject.toml | No | `functions` |
79- | `environment` | Environment to deploy to (staging/prod) | Yes | N/A |
80- | `service_account_json` | Firebase service account JSON | Yes | N/A |
81- | `project_id` | Firebase project ID | Yes | N/A |
79+ | Input | Description | Required | Default |
80+ | --------------- | ------------------------------------------------- | -------- | ----------- |
81+ | `functions_dir` | Directory containing functions and pyproject.toml | No | `functions` |
82+ | `environment` | Environment to deploy to (staging/prod) | Yes | N/A |
83+ | `project_id` | Firebase project ID | Yes | N/A |
8284
8385# # Prerequisites
8486
0 commit comments