Skip to content

Creating Your Own Actions

Neil Horton edited this page Mar 23, 2016 · 1 revision

If you cant find an prebaked action to perform a task it is possible to define your own. Please make sure an action doesnt already exist however, there is already a pretty extensive list of actions that covers most scenarios. When we create our own action its code that we have to maintain and manage theres no point reinventing the wheel.

That being said it is sometimes inevitable that we have to create our own actions. In this case the easiest thing to do is to use the following command to generate the skeleton code for the action

$ fastlane new_action

Now its time to write some ruby!

Once you have created your action you can call it just like any other action!!!

If the action you have created is going to be useful to other members of TAB submit a PR to the TABFastlaneMaster-IOS repo. Or go one step further and if it would be useful to the wider community submit it a PR to the actual fastlane repo and OpenSource that stuff. It will make you feel good!

Home

Clone this wiki locally