google-github-actions / deploy-cloud-functions

A GitHub Action that deploys source code to Google Cloud Functions.
https://cloud.google.com/functions
Apache License 2.0
318 stars 66 forks source link

Is it possible to deploy an onRun cloud function with this action? #410

Closed trigonometric-act closed 6 months ago

trigonometric-act commented 6 months ago

Documentation is not very clear on how to deploy a function like in ts:

export const whatevername= functions.region('europe-west1').pubsub.schedule('0 1 *').timeZone('Europe/Madrid').onRun(async () => { // code })

Is it possible to do it with this action?

Any explanation would be much apreciated, thanks!

sethvargo commented 6 months ago

Hi @trigonometric-act - this function uses the Cloud Functions API to deploy functions. So if the Cloud Functions v1 API supports deploying those functions, then it will work.