A cookiecutter template for generating GitHub actions running Python
MIT License
A cookiecutter template for generating Github actions running Python
Make sure that you have the cookiecutter command line interface installed:
cookiecutter --version
If this is not the case, install it first. Check out their documentation for the most up to date info for your platform.
To create a project for a Python powered Github action:
> cookiecutter https://github.com/browniebroke/cookiecutter-action-py
author_name [Bruno Alla]:
email [[email protected]]:
github_username [browniebroke]:
name [Github Action Python]:
hyphenated_name [github-action-python]:
description [A Github Action to run some Python code]:
Select branding_color:
1 - white
2 - yellow
3 - blue
4 - green
5 - orange
6 - red
7 - purple
8 - gray-dark
Choose from 1, 2, 3, 4, 5, 6, 7, 8 [1]:
The generated project will live in a directory named after the answer you gave for the hyphenated_name
, this should match your Github repo name.
src/app.py
action.yml
and get their values from the environment in app.py
.something
is commented out in both files.