{"id":16293541,"url":"https://github.com/badsyntax/github-action-render-template","last_synced_at":"2025-03-20T03:31:06.976Z","repository":{"id":37904918,"uuid":"438340539","full_name":"badsyntax/github-action-render-template","owner":"badsyntax","description":"A GitHub Action to render a Handlebars template","archived":false,"fork":false,"pushed_at":"2023-04-13T16:01:00.000Z","size":890,"stargazers_count":3,"open_issues_count":6,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T22:55:04.613Z","etag":null,"topics":["github-action","github-actions","handlebars","template"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/render-template-handlebars","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badsyntax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-14T17:23:52.000Z","updated_at":"2023-11-05T12:00:25.000Z","dependencies_parsed_at":"2024-10-27T21:44:35.730Z","dependency_job_id":"2705d3a3-786a-4284-900c-df0248c35152","html_url":"https://github.com/badsyntax/github-action-render-template","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.4,"last_synced_commit":"933ca101770694abdf02b07fd417245ac8206328"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-render-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-render-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-render-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badsyntax%2Fgithub-action-render-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badsyntax","download_url":"https://codeload.github.com/badsyntax/github-action-render-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047647,"owners_count":20389206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-action","github-actions","handlebars","template"],"created_at":"2024-10-10T20:11:41.704Z","updated_at":"2025-03-20T03:31:06.296Z","avatar_url":"https://github.com/badsyntax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Render Template GitHub Action\n\n[![Build \u0026 Test](https://github.com/badsyntax/github-action-render-template/actions/workflows/test.yml/badge.svg)](https://github.com/badsyntax/github-action-render-template/actions/workflows/test.yml)\n[![Render Template](https://github.com/badsyntax/github-action-render-template/actions/workflows/render-template.yml/badge.svg)](https://github.com/badsyntax/github-action-render-template/actions/workflows/render-template.yml)\n[![CodeQL](https://github.com/badsyntax/github-action-render-template/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/badsyntax/github-action-render-template/actions/workflows/codeql-analysis.yml)\n\nA super simple GitHub Action to render a handlebars template.\n\nFeatures\n\n- Renders any handlebars template\n- Accepts any inputs via JSON string\n- Outputs an escaped string that can be used as an input to a different Action\n\n## Getting Started\n\n```yml\nname: 'Render Template'\n\non:\n  pull_request:\n    types: [opened, synchronize, reopened]\n  push:\n    branches:\n      - master\n\njobs:\n  deploy:\n    name: 'Render'\n    runs-on: ubuntu-20.04\n    steps:\n      - uses: actions/checkout@v2\n\n      - uses: badsyntax/github-action-render-template@v0.0.1\n        name: Render Template\n        id: render-template\n        with:\n          template: '.github/pr-comment-template.hbs'\n          inputs: |\n            {\n              \"firstName\":\"Bob\",\n              \"lastName\":\"Marley\"\n            }\n\n      - name: Output Rendered Template\n        run: |\n          echo \"Rendered Template: $OUTPUT\"\n        env:\n          OUTPUT: ${{ steps.render-template.outputs.result }}\n```\n\n## Action Inputs\n\n| Name       | Description                                                    | Example                             |\n| ---------- | -------------------------------------------------------------- | ----------------------------------- |\n| `template` | The path to the handlebars template file                       | `./.github/pr-comment-template.hbs` |\n| `inputs`   | A JSON string object of key value pairs (can include newlines) | `{\"key\":\"value\"}`                   |\n\n## Action Outputs\n\n| Name     | Description                                                                | Example                    |\n| -------- | -------------------------------------------------------------------------- | -------------------------- |\n| `result` | Escaped rendered template which can be used an input to a different Action | `(your rendered template)` |\n\n## Related Projects\n\n- [badsyntax/github-action-issue-comment](https://github.com/badsyntax/github-action-issue-comment)\n\n## Support\n\n- 👉 [Submit a bug report](https://github.com/badsyntax/github-action-render-template/issues/new?assignees=badsyntax\u0026labels=bug\u0026template=bug_report.md\u0026title=)\n- 👉 [Submit a feature request](https://github.com/badsyntax/github-action-render-template/issues/new?assignees=badsyntax\u0026labels=enhancement\u0026template=feature_request.md\u0026title=)\n\n## License\n\nSee [LICENSE.md](./LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadsyntax%2Fgithub-action-render-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadsyntax%2Fgithub-action-render-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadsyntax%2Fgithub-action-render-template/lists"}