Welcome to PyAction!
PyAction helps you to create and develop custom GitHub Actions using Python.
Actions are individual tasks that you can combine to create jobs and customize your workflow. You can create your own actions, or use and customize actions shared by the GitHub community. GitHub Inc.
This documentation covers a tutorial and a demo hello-world action. Head to Quickstart to see the demo project and create an action in a flash.
Easy to Setup
Make sure you have pip
and python>=3.8
installed on your machine and install pyaction
.
Now, execute the following command to see all the subcommands and options.
It's recommended to..
Initialize a basic template and provide yourself a nicely put-to-gether action structure for starting.
Here you can see a very basic greeting action example that returns a greeting message to the workflow when someone calls it with a name
input parameter.
Since pyaction
is part of your action's dependencies, you have access to utilities that enable you to work with the repository/workflow data. You can find out more about these utils on the Tutorial page.
How It Works
Custom GitHub Actions can be developed in different ways. PyAction uses the Docker Container method which is highly stable with Python environments. This way, you'll be able to specify the requirements for your actions and run them inside a lightweight isolated container with all the dependencies installed.
If you're interested in the idea and want to help, your contribution is welcome as always. Check out the Contribution Guide for more information.