Skip to content

Commit

Permalink
Fixing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteLecat committed Apr 3, 2024
1 parent 11ad5b0 commit 17f9d76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/gcp-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ jobs:
npm run build
- name: deploy
uses: "google-github-actions/deploy-cloud-functions@v0"
uses: "google-github-actions/deploy-cloud-functions@@v2"
with:
# Name of the Cloud Function, same as the entry point name
name: "onGenerationCreated"
source_dir: "functions"
# Runtime to use for the function
runtime: "nodejs18"
event_trigger_type: 'providers/cloud.firestore/eventTypes/document.create'
event_trigger_resource: 'projects/${{ secrets.GCP_PROJECT_ID }}/databases/(default)/documents/users/{userId}/locations/{locationId}/generations/{generationId}'

0 comments on commit 17f9d76

Please sign in to comment.