Jinja2 is a fast and straightforward templating engine.
You can use this action to easily run the Jinja2 CLI inside your repository.
- name: Setup nginx
uses: cuchi/jinja2-action@v1.1.0
with:
template: infra/nginx.conf.j2
output_file: infra/nginx.conf
strict: true
variables: |
server_host=staging.example.com
timeout=30s