Skip to content

Jinja2 is a fast and straightforward templating engine. You can use this action to easily run it in your GitHub workflows.

License

Notifications You must be signed in to change notification settings

jayamanikharyono/jinja-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Main CI/CD Pipeline

Using Action Inputs

- 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)

- 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

def print_status():
    print('{{ repo_name }}')
    return ("Templating Succeded!")

Rendered file

def print_status():
    print('master')
    return ("Templating Succeded!")

About

Jinja2 is a fast and straightforward templating engine. You can use this action to easily run it in your GitHub workflows.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published