{"id":15286355,"url":"https://github.com/toolsascode/gomodeler-action","last_synced_at":"2026-05-14T23:31:49.385Z","repository":{"id":257331988,"uuid":"857888910","full_name":"toolsascode/gomodeler-action","owner":"toolsascode","description":"GitHub Action for GoModeler","archived":false,"fork":false,"pushed_at":"2024-10-03T21:51:02.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T21:25:59.404Z","etag":null,"topics":["ci","cloud","devops","github-actions","golang","gomodeler","gotemplate","pltaform","sre","summary","template"],"latest_commit_sha":null,"homepage":"https://github.com/toolsascode/gomodeler","language":"Makefile","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/toolsascode.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-15T21:33:07.000Z","updated_at":"2024-10-03T21:47:17.000Z","dependencies_parsed_at":"2024-09-16T03:34:15.196Z","dependency_job_id":"b88081bf-63d9-41cc-a349-1c1271ca006e","html_url":"https://github.com/toolsascode/gomodeler-action","commit_stats":null,"previous_names":["toolsascode/gomodeler-action"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/toolsascode/gomodeler-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolsascode%2Fgomodeler-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolsascode%2Fgomodeler-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolsascode%2Fgomodeler-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolsascode%2Fgomodeler-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolsascode","download_url":"https://codeload.github.com/toolsascode/gomodeler-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolsascode%2Fgomodeler-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273543599,"owners_count":25124338,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ci","cloud","devops","github-actions","golang","gomodeler","gotemplate","pltaform","sre","summary","template"],"created_at":"2024-09-30T15:13:28.250Z","updated_at":"2026-05-14T23:31:49.319Z","avatar_url":"https://github.com/toolsascode.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/toolsascode/protomagic\"\u003e\u003cimage src=\"https://raw.githubusercontent.com/toolsascode/protomagic/main/assets/protomagic.png\" style=\"width: 100px;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# Go Modeler for GitHub Action\n\nGoModeler is a small CLI to facilitate the compilation of templates using the go template engine.\n\n**See more:** \u003chttps://github.com/toolsascode/gomodeler\u003e\n\n## Changelog\n\nPlease refer to the [release page](https://github.com/toolsascode/gomodeler/releases) for the latest release notes.\n\n## Usage\n\n```yaml\n- uses: toolsascode/gomodeler-action@v1\n  with:\n    # Expected log level in application output.\n    # Currently the following options are supported: debug, info, warn, error, fatal or panic\n    # Default: info\n    log-level: info\n    # List of environment variables in key=value format\n    # Default: ''\n    environments: |\n        key=value\n    # Environment variables file in YAML or JSON format.\n    # Default: ''\n    environment-file: /path/to/envFile.yaml\n    # gotemplate code block to be rendered\n    # Default: ''\n    template: |\n        {{ .key }}\n    # List of template files for rendering.\n    # Default: ''\n    template-file: /path/to/templates/file.ext.gotmpl\n    # Path of template files for rendering.\n    # Default: ''\n    template-path: /path/to/templates\n    # The path where the rendered files will be stored.\n    # Default: \"./outputs\"\n    output-path: /path/to/outputs\n    # Add rendered content to GITHUB_STEP_SUMMARY output.\n    # Default: false\n    github-step-summary: false\n```\n\n## Examples\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\u003cb\u003eRender templates\u003c/b\u003e\u003c/summary\u003e\n\n- This model is useful for those who only expect to compile the file and use the file for other tasks.\n\n```yaml\n- uses: toolsascode/gomodeler-action@v1\n  with:\n    log-level: info\n    environment-file: /path/to/envFile.yaml\n    template-path: /path/to/templates\n    output-path: /path/to/outputs\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\u003cb\u003eAdd rendered content to GitHub Step Summary\u003c/b\u003e\u003c/summary\u003e\n\n- In this case, in addition to compiling, the file is automatically added to GITHUB_STEP_SUMMARY.\n\n```yaml\n- uses: toolsascode/gomodeler-action@v1\n  with:\n    log-level: info\n    environment-file: /path/to/envFile.yaml\n    template-path: /path/to/templates\n    output-path: /path/to/outputs\n    github-step-summary: true\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n\u003csummary\u003e\u003cb\u003eCustomizing the GitHub Actions Summary\u003c/b\u003e\u003c/summary\u003e\n\n- A small example of how you can create your custom template file.\n- In this case, in addition to compiling, the file is automatically added to GITHUB_STEP_SUMMARY.\n\n1. Create the Template file: `summary.md.gotmpl`\n\n```yaml\n## {{ .title }}\n{{ if or (empty .active_details) (.active_details | default \"true\" | bool) }}\n\u003cdetails\u003e\n    \u003csummary\u003e\u003cb\u003e{{ .subtitle | default \"Output\" }}\u003c/b\u003e\u003c/summary\u003e\n\n{{ if or (empty .split_file) (not .split_file | default \"false\" | bool) }}\n'``{{ .extension | default \"yaml\" }}\n{{ include .filename | trim }}\n'``\n{{ else }}\n'``{{ .extension | default \"yaml\" }}\n{{ range (include .filename) | trim | arrayStr -}}\n{{- $file := . }}\n{{- if not (empty \"$file\") }}\n{{- $file }}\n{{- end }}\n{{ end -}}\n'``\n{{ end }}\n\u003c/details\u003e\n{{ end -}}\n```\n\n2. Add Workflow\n\n```yaml\n  - name: Checkout\n    uses: actions/checkout@v4\n  - uses: dorny/paths-filter@v3\n    id: filter\n    with:\n      list-files: shell\n      filters: |\n        files:\n          - added|modified: '*.go'\n\n  - name: Generate Output files\n    run: |\n      echo \"${{ steps.filter.outputs.files }}\" \u003e ./files.out\n\n  - name: Step Summary - Flow files changes\n    uses: toolsascode/gomodeler-action@v1\n    with:\n      log-level: debug\n      environments: |\n        title=Files Changes\n        subtitle=Output\n        extension=shell\n        active_details=true\n        split_file=true\n        filename=./files.out\n      template-file: ./templates/summary.md.gotmpl\n      github-step-summary: true\n```\n\n\u003c/details\u003e\n\n### Others\n\n**See example:** \u003chttps://github.com/toolsascode/gomodeler-action/actions/runs/10893938906\u003e\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](./LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolsascode%2Fgomodeler-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoolsascode%2Fgomodeler-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoolsascode%2Fgomodeler-action/lists"}