{"id":17800379,"url":"https://github.com/actions-able/envsubst-action","last_synced_at":"2025-03-17T08:37:57.242Z","repository":{"id":131312208,"uuid":"590916438","full_name":"actions-able/envsubst-action","owner":"actions-able","description":"Github action of envsubst (utility of GNU gettext https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html)","archived":false,"fork":false,"pushed_at":"2025-02-17T08:50:33.000Z","size":28,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-27T21:47:51.781Z","etag":null,"topics":["github-actions","hacktoberfest","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/actions-able.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-19T14:14:36.000Z","updated_at":"2025-02-17T08:50:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f0a8599-b68e-45f9-8e23-894bf785593e","html_url":"https://github.com/actions-able/envsubst-action","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-able%2Fenvsubst-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-able%2Fenvsubst-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-able%2Fenvsubst-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-able%2Fenvsubst-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-able","download_url":"https://codeload.github.com/actions-able/envsubst-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243853617,"owners_count":20358451,"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-actions","hacktoberfest","utility"],"created_at":"2024-10-27T12:20:32.563Z","updated_at":"2025-03-17T08:37:57.232Z","avatar_url":"https://github.com/actions-able.png","language":"Shell","readme":"= Envsubst GitHub Action\n\nThis GitHub Action substitutes the values of environment variables in your files using `envsubst`, a powerful utility from GNU gettext.\nIt provides a flexible and efficient way to dynamically update configuration files, templates, and other text-based resources in your CI/CD pipeline.\n\n== Why Use This Action?\n\n* *Simplify Configuration Management*: Easily update configuration files with environment-specific values without manual intervention.\n* *Enhance CI/CD Workflows*: Seamlessly integrate dynamic content substitution into your GitHub Actions pipelines.\n* *Flexible File Handling*: Process single files or multiple files using patterns, adapting to various project structures.\n* *Maintain Security*: Keep sensitive data in GitHub Secrets and inject them safely into your files during the CI/CD process.\n* *Reduce Human Error*: Automate the process of updating environment-specific values, minimizing the risk of manual mistakes.\n\n== Prerequisites\n\n* Your repository must be checked out using `actions/checkout@v4` or a similar action.\n* Familiarity with environment variables and GitHub Actions workflows.\n\n== Usage Examples\n\n=== Substitute envs in a single file\n\nThis example demonstrates how to substitute environment variables in a specific file:\n\n[source,yaml]\n----\n- uses: actions/checkout@v4\n  with:\n    fetch-depth: 0\n\n- name: Substitute environment variables\n  uses: actions-able/envsubst-action@v1\n  with:\n    input-file: 'deployment.yaml'\n    output-file: 'new-deployment.yaml'\n  env:\n    IMAGE_NAME: 'my-custom-image:1.0.0'\n----\n\n=== Substitute envs in multiple files using patterns\n\nThis example shows how to process multiple files matching a specific pattern:\n\n[source,yaml]\n----\n- uses: actions/checkout@v4\n  with:\n    fetch-depth: 0\n\n- name: Substitute environment variables in multiple files\n  uses: actions-able/envsubst-action@v1\n  with:\n    input-file-pattern: '*.yaml'\n    output-file-suffix: '.subst'\n  env:\n    IMAGE_NAME: 'my-custom-image:1.0.0'\n----\n\nIn this configuration, output filenames will have the `.subst` suffix (e.g., `deployment.yaml.subst`).\n\n== Parameters\n\n[cols=\"2a,6a,1a\",options=\"header\"]\n|===\n|Name\n|Description\n|Default value\n\n|working-directory\n|Directory where to find the input file(s)\n|`.`\n\n|input-file\n|Path to the input file. Requires `output-file` to be set if defined.\n\nNOTE: Cannot be used with `input-file-pattern`.\n|\n\n|output-file\n|Path to the output file. Requires `input-file` to be set if defined.\n|\n\n|input-file-pattern\n|Pattern of input files. Uses GNU `find -name` for file matching.\n\nNOTE: Cannot be used with `input-file`.\n|\n\n|output-file-suffix\n|Suffix added to filenames for output files when using `input-file-pattern`.\n|`.subst`\n\n|===\n\n== Additional Information\n\nFor more details on `envsubst`, refer to the https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html[GNU gettext documentation].\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-able%2Fenvsubst-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-able%2Fenvsubst-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-able%2Fenvsubst-action/lists"}