https://github.com/jayamanikharyono/jinja-action
Jinja2 is a fast and straightforward templating engine. You can use this action to easily run it in your GitHub workflows.
https://github.com/jayamanikharyono/jinja-action
cicd jinja2 python templating-engine
Last synced: 3 months ago
JSON representation
Jinja2 is a fast and straightforward templating engine. You can use this action to easily run it in your GitHub workflows.
- Host: GitHub
- URL: https://github.com/jayamanikharyono/jinja-action
- Owner: jayamanikharyono
- License: mit
- Created: 2021-01-10T06:29:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T09:04:26.000Z (almost 3 years ago)
- Last Synced: 2025-09-26T04:36:10.907Z (7 months ago)
- Topics: cicd, jinja2, python, templating-engine
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jinja2-Action
Jinja2 is a fast and straightforward templating engine. You can use this action to easily run it in your GitHub workflows. This Action support spesific files templating or all files in dir (by patern) templating.

### Using Action Inputs
```yml
- name: Render Repo Name
uses: jayamanikharyono/jinja-action@v0.1
with:
data: repo_name=${{ github.event.repository.name }}
path: tests/test_template_single.py
```
### Using Data Files (Json)
```yml
- name: Render all DAGs in Dir
uses: jayamanikharyono/jinja-action@v0.1
with:
datafile: tests/template_data.json
path: tests/multi/*.py
```
### Examples of usage scenarios
Raw file
```python
def print_status():
print('{{ repo_name }}')
return ("Templating Succeded!")
```
Rendered file
```python
def print_status():
print('master')
return ("Templating Succeded!")
```