m github actions¶
Create the actions metadata as described by given python script.
When creating actions we need to have the python_file
be at the root
of a python project. This is because when we run the action we will set
the path to the directory containing the file.
By default it has been set to src/actions.py
since this is a common case
for python projects.
The actions.py
can be name anything but it must contain a variable named
actions
. This variable must be an instance or list of
m.github.actions.Action.
Source code in m/cli/commands/github/actions.py
Options¶
--check
¶
- default:
false
Check if generated files are up to date and skip writing them.
--show-traceback
¶
- default:
false
Display traceback information in case of an error.
Positional arguments¶
python_file
¶
- default:
'src/actions.py'
Python script containing the actions
variable.