The agent.py
script is a tool that grabs the required content from the NGINX Agent Changelog in GitHub and generates the Hugo content to be used in the NGINX Agent Changelog page
The template.j2
file is the Jinja2 template used to generate the Hugo content.
- Clone the repository
- Install the required dependencies:
pip install -r requirements.txt
Run this script within a GitHub Actions workflow to generate a changelog.
Make sure to define the GitHub token as an environment variable.
To run the script, use the following command:
python agent.py
The script will generate the changelog.md
file in the same folder as the script containing the changes from the last 10 releases.
The genrated changelog.md
can be copied directly to the /site/content/
folder in the NGINX Agent repository.
© F5, Inc. 2024