Get Started¶
A Typed Python GitHub Actions Tookit similar to actions/toolkit.
To get started install the tools and view the usage.
If you run into any issues, support is available.
Install¶
From PyPI: https://pypi.org/p/actions-tools
With PyGithub (for GitHub API access).
Install from GitHub.
Install from source.
Uninstall.
Quick Start¶
Install the tools.
Use the modules.
from actions import core, context
token = core.get_input("token", True)
g = core.get_github(token) # (1)!
repo = g.get_repo(context.repository)
core.info(f"repo.name: {repo.name}")
event = core.get_event()
core.info(event["repository"])
core.set_output("repo", repo.name)
core.summary.add_raw("🚀 We Did It!")
- To use
get_githubinstall with thegithubextra:
Make sure to view the full Usage guide.
Question
If you need help or run into issues, support is available!
Info
This project is in active development. Please let us know what features you want.
Documentation
This documentation site is a work in progress. See the README.md for more details.
