Skip to content

Instantly share code, notes, and snippets.

@pritidesai
Created October 17, 2018 23:52
Show Gist options
  • Select an option

  • Save pritidesai/d5ebed658cae722fa1ce91d900a6b3e2 to your computer and use it in GitHub Desktop.

Select an option

Save pritidesai/d5ebed658cae722fa1ce91d900a6b3e2 to your computer and use it in GitHub Desktop.
packages:
zipactionwithinclude:
actions:
greeting1:
function: actions/greeting1
runtime: nodejs:6
include:
- ["actions/common/utils.js", "common/utils.js"]
greeting2:
function: actions/greeting2
runtime: nodejs:6
include:
- ["actions/common/utils.js", "common/utils.js"]
@musa-pro
Copy link

I tried the same for ibm cloud but i get following error when I invoke the funciton -
"error": "Initialization has failed due to: Zipped actions must contain either package.json or index.js at the root."
I deployed the codes in ibm cloud using following command -
ibmcloud fn deploy --manifest ./manifest.yml

Now I'm stuck, appreciate any response.
Thanks
Musa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment