
Actions Tools
If you are writing Actions in Python I created a Python Actions Toolkit to provide similar functionality to actions/toolkit.
Install
From PyPI: https://pypi.org/p/actions-tools
text
python -m pip install actions-toolstext
uv add actions-toolstext
actions-toolstext
dependencies = ["actions-tools"]With PyGithub (for GitHub API access).
text
python -m pip install actions-tools[github]text
uv add actions-tools[github]text
actions-tools[github]text
dependencies = ["actions-tools[github]"]Usage
After installing import the module and start using the methods...
python
from actions import core, context
token = core.get_input("token", True)
g = core.get_github(token)
repo = g.get_repo(f"{context.repository}")
core.info(f"repo.name: {repo.name}")
core.set_output("name", repo.name)This is just a simple example, make sure to view the Usage Guide.
Usage
View the complete Usage Guide.
Actions
These are actions are using actions-tools:
- Create Files Action: cssnr/create-files-action
- Python Action Template: smashedr/test-action-py
- Python UV Action Template: smashedr/test-action-uv
Don't see what you need? Request a new GitHub Action.
