File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,11 @@ jobs:
2020 service_account_key : ${{ secrets.GCP_SA_KEY }}
2121 export_default_credentials : true
2222
23- - name : Deploy function
24- uses : google-github-actions/deploy-cloud-functions@v2
25- with :
26- name : automaintainer-bot
27- runtime : nodejs20
28- entry_point : automaintainer-bot
29- project_id : ${{ secrets.GCP_PROJECT_ID }}
30- credentials : ${{ secrets.GCP_SA_KEY }}
31- region : europe-west1
32- source_dir : .
33- env_vars : |
34- NODE_ENV=production
35- APP_ID=${{ secrets.APP_ID }}
36- PRIVATE_KEY=${{ secrets.PRIVATE_KEY }}
37- WEBHOOK_SECRET=${{ secrets.WEBHOOK_SECRET }}
23+ - name : Deploy to GCF
24+ run : |
25+ gcloud functions deploy automaintainer-bot \
26+ --runtime nodejs20 \
27+ --allow-unauthenticated \
28+ --trigger-http \
29+ --entry-point automaintainer-bot \
30+ --set-env-vars APP_ID="${{secrets.APP_ID}}",PRIVATE_KEY="${{secrets.PRIVATE_KEY}}",WEBHOOK_SECRET="${{secrets.WEBHOOK_SECRET}}"
You can’t perform that action at this time.
0 commit comments