For best practices, please review our documentaton and accompanying coding guidelines
To create a new actions template, follow the steps below:
- Make sure you have all npm modules installed:
npm i
(from the root of this repo) - Generate a new actions template and follow all prompts:
npm run add:template
(from the root of this repo) - Open the newly generated
manifest.yaml
file and make sure to update it and fill in any other extra details such as secrets, and notes. - Open the newly generated
code.js
file and make sure to add your code implementation within the relevant generated exported functions - Make sure to test your
code.js
in a live tenant of your own to make sure it works as expected. - Once ready, create a pull request with your new actions template.
- Locate the directory of the actions template you'd like to update under
templates/*
. - Update any details in the
manifest.yaml
orcode.js
contained within. - Create a pull request with your changes.
Note
- You are not allowed to update the
id
of an actions template
- Locate the directory of the actions template you'd like to update under
templates/*
. - Look within
manifest.yaml
and set thedeleted
field totrue
. - Create a pull request with your changes.
The actions team will periodically take the actions templates represented in this repo and deploy them.
Note
There is no pre-determined cadence at which the actions templates in this repository are deployed.