{"id":32516209,"url":"https://github.com/cssnr/create-files-action","last_synced_at":"2026-06-13T03:34:27.896Z","repository":{"id":320631620,"uuid":"1082833660","full_name":"cssnr/create-files-action","owner":"cssnr","description":"Easily Create Various Files from Templates with Custom Options","archived":false,"fork":false,"pushed_at":"2025-11-17T04:26:21.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-17T05:27:02.096Z","etag":null,"topics":["actions"],"latest_commit_sha":null,"homepage":"https://actions.cssnr.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cssnr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"cssnr"}},"created_at":"2025-10-24T20:59:06.000Z","updated_at":"2025-11-17T04:24:49.000Z","dependencies_parsed_at":"2025-10-24T23:17:21.130Z","dependency_job_id":"f248c225-5823-40be-928e-dbae789aff66","html_url":"https://github.com/cssnr/create-files-action","commit_stats":null,"previous_names":["cssnr/create-files-action"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cssnr/create-files-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fcreate-files-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fcreate-files-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fcreate-files-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fcreate-files-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cssnr","download_url":"https://codeload.github.com/cssnr/create-files-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cssnr%2Fcreate-files-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34271500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":["actions"],"created_at":"2025-10-28T01:20:56.547Z","updated_at":"2026-06-13T03:34:27.889Z","avatar_url":"https://github.com/cssnr.png","language":"Python","funding_links":["https://ko-fi.com/cssnr"],"categories":[],"sub_categories":[],"readme":"[![Actions Tools](https://img.shields.io/badge/python-actions_toolkit-4584b6?logo=python\u0026logoColor=ffde57)](https://actions-tools.cssnr.com/)\n[![GitHub Tag Major](https://img.shields.io/github/v/tag/cssnr/create-files-action?sort=semver\u0026filter=!v*.*\u0026logo=git\u0026logoColor=white\u0026labelColor=585858\u0026label=%20)](https://github.com/cssnr/create-files-action/tags)\n[![GitHub Tag Minor](https://img.shields.io/github/v/tag/cssnr/create-files-action?sort=semver\u0026filter=!v*.*.*\u0026logo=git\u0026logoColor=white\u0026labelColor=585858\u0026label=%20)](https://github.com/cssnr/create-files-action/releases)\n[![GitHub Release Version](https://img.shields.io/github/v/release/cssnr/create-files-action?logo=git\u0026logoColor=white\u0026labelColor=585858\u0026label=%20)](https://github.com/cssnr/create-files-action/releases/latest)\n[![Workflow Test](https://img.shields.io/github/actions/workflow/status/cssnr/create-files-action/test.yaml?logo=cachet\u0026label=test)](https://github.com/cssnr/create-files-action/actions/workflows/test.yaml)\n[![Workflow Lint](https://img.shields.io/github/actions/workflow/status/cssnr/create-files-action/lint.yaml?logo=cachet\u0026label=lint)](https://github.com/cssnr/create-files-action/actions/workflows/lint.yaml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=cssnr_create-files-action\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=cssnr_create-files-action)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/cssnr/create-files-action?logo=github\u0026label=updated)](https://github.com/cssnr/create-files-action/pulse)\n[![Codeberg Last Commit](https://img.shields.io/gitea/last-commit/cssnr/create-files-action/master?gitea_url=https%3A%2F%2Fcodeberg.org%2F\u0026logo=codeberg\u0026logoColor=white\u0026label=updated)](https://codeberg.org/cssnr/create-files-action)\n[![GitHub Repo Size](https://img.shields.io/github/repo-size/cssnr/create-files-action?logo=bookstack\u0026logoColor=white\u0026label=repo%20size)](https://github.com/cssnr/create-files-action?tab=readme-ov-file#readme)\n[![GitHub Top Language](https://img.shields.io/github/languages/top/cssnr/create-files-action?logo=htmx)](https://github.com/cssnr/create-files-action)\n[![GitHub Contributors](https://img.shields.io/github/contributors-anon/cssnr/create-files-action?logo=github)](https://github.com/cssnr/create-files-action/graphs/contributors)\n[![GitHub Discussions](https://img.shields.io/github/discussions/cssnr/create-files-action?logo=github)](https://github.com/cssnr/create-files-action/discussions)\n[![GitHub Forks](https://img.shields.io/github/forks/cssnr/create-files-action?style=flat\u0026logo=github)](https://github.com/cssnr/create-files-action/forks)\n[![GitHub Repo Stars](https://img.shields.io/github/stars/cssnr/create-files-action?style=flat\u0026logo=github)](https://github.com/cssnr/create-files-action/stargazers)\n[![GitHub Org Stars](https://img.shields.io/github/stars/cssnr?style=flat\u0026logo=github\u0026label=org%20stars)](https://cssnr.github.io/)\n[![Discord](https://img.shields.io/discord/899171661457293343?logo=discord\u0026logoColor=white\u0026label=discord\u0026color=7289da)](https://discord.gg/wXy6m2X8wY)\n[![Ko-fi](https://img.shields.io/badge/Ko--fi-72a5f2?logo=kofi\u0026label=support)](https://ko-fi.com/cssnr)\n\n# Create Files Action\n\n- [Inputs](#Inputs)\n- [Outputs](#Outputs)\n- [Types](#Types)\n- [Examples](#Examples)\n- [Contributing](#Contributing)\n\nEasily create various file [types](#Types) with custom options.\nWrite the data to a file or use the [output](#Outputs).\n\n## Inputs\n\n| Input         |  Default   | Input\u0026nbsp;Description |\n| :------------ | :--------: | :--------------------- |\n| [type](#type) | _Required_ | Type of File to Create |\n| [file](#file) |     -      | Output File to Create  |\n| [data](#data) |     -      | File Data for `type`   |\n\n#### type\n\nCurrently only supports [redirect](#redirect) html file.\n\n#### file\n\nOutput file path to write file; otherwise use the [output](#Outputs).\n\n#### data\n\n[Type](#Types) specific data in YAML format.\n\n\u003cdetails\u003e\u003csummary\u003eHow to Pass Data\u003c/summary\u003e\n\n```yaml\ndata: |\n  url: https://smashedr.github.io/github-projects/\n  text: /github-projects\n  title: Ralf Broke It\n  timer: 5\n```\n\n\u003c/details\u003e\n\n## Outputs\n\n| Output  | Description  |\n| :------ | :----------- |\n| content | File Content |\n\n```yaml\n- name: 'Create Files Action'\n  id: files\n  uses: cssnr/create-files-action@master\n\n- name: 'Echo Output'\n  run: |\n    echo \"content: '${{ steps.files.outputs.content }}'\"\n```\n\n## Types\n\n### redirect\n\nCreates an HTML redirect page with timer and link.\n\n| Data  | Default\u0026nbsp;Value | Description\u0026nbsp;of\u0026nbsp;Input |\n| :---- | :----------------- | :----------------------------- |\n| url   | -                  | URL to Redirect too            |\n| text  | _url_              | Text for URL link              |\n| title | `Redireting`       | Title of the page              |\n| timer | `5`                | Redirect timer seconds         |\n\n\u003cdetails\u003e\u003csummary\u003eView Step Example\u003c/summary\u003e\n\n```yaml\n- name: 'Redirect'\n  id: redirect\n  uses: cssnr/create-files-action@master\n  with:\n    type: 'redirect'\n    file: 'index.html'\n    data: |\n      url: https://smashedr.github.io/github-projects/\n      text: /github-projects\n      title: Rolf Broke\n      timer: 3\n```\n\n\u003c/details\u003e\n\n### robots\n\nCreates a robots.txt to block all robots.\n\n\u003cdetails\u003e\u003csummary\u003eView Step Example\u003c/summary\u003e\n\n```yaml\n- name: 'Robots'\n  id: robots\n  uses: cssnr/create-files-action@master\n  with:\n    type: 'robots'\n    file: 'robots.txt'\n```\n\n\u003c/details\u003e\n\n## Examples\n\n💡 _Click on an example heading to expand or collapse the example._\n\nComing soon.\n\nFor more examples, you can check out other projects using this action:  \nhttps://github.com/cssnr/create-files-action/network/dependents\n\n# Support\n\nFor general help or to request a feature see:\n\n- Q\u0026A Discussion: https://github.com/cssnr/create-files-action/discussions/categories/q-a\n- Request a Feature: https://github.com/cssnr/create-files-action/discussions/categories/feature-requests\n\nIf you are experiencing an issue/bug or getting unexpected results you can:\n\n- Report an Issue: https://github.com/cssnr/create-files-action/issues\n- Chat with us on Discord: https://discord.gg/wXy6m2X8wY\n- Provide General Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Stack%20Deploy)\n\nFor more information, see the CSSNR [SUPPORT.md](https://github.com/cssnr/.github/blob/master/.github/SUPPORT.md#support).\n\n# Contributing\n\nIf you would like to submit a PR, please review the [CONTRIBUTING.md](#contributing-ov-file).\n\nPlease consider making a donation to support the development of this project\nand [additional](https://cssnr.com/) open source projects.\n\n[![Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/cssnr)\n\n[![Actions Tools](https://raw.githubusercontent.com/smashedr/repo-images/refs/heads/master/actions/actions-tools.png)](https://actions-tools.cssnr.com/)\n\nAdditionally, you can support other [GitHub Actions](https://actions.cssnr.com/) I have published:\n\n- [Stack Deploy Action](https://github.com/cssnr/stack-deploy-action?tab=readme-ov-file#readme)\n- [Portainer Stack Deploy Action](https://github.com/cssnr/portainer-stack-deploy-action?tab=readme-ov-file#readme)\n- [Docker Context Action](https://github.com/cssnr/docker-context-action?tab=readme-ov-file#readme)\n- [Actions Up Action](https://github.com/cssnr/actions-up-action?tab=readme-ov-file#readme)\n- [Zensical Action](https://github.com/cssnr/zensical-action?tab=readme-ov-file#readme)\n- [VirusTotal Action](https://github.com/cssnr/virustotal-action?tab=readme-ov-file#readme)\n- [Mirror Repository Action](https://github.com/cssnr/mirror-repository-action?tab=readme-ov-file#readme)\n- [Update Version Tags Action](https://github.com/cssnr/update-version-tags-action?tab=readme-ov-file#readme)\n- [Docker Tags Action](https://github.com/cssnr/docker-tags-action?tab=readme-ov-file#readme)\n- [TOML Action](https://github.com/cssnr/toml-action?tab=readme-ov-file#readme)\n- [Update JSON Value Action](https://github.com/cssnr/update-json-value-action?tab=readme-ov-file#readme)\n- [JSON Key Value Check Action](https://github.com/cssnr/json-key-value-check-action?tab=readme-ov-file#readme)\n- [Parse Issue Form Action](https://github.com/cssnr/parse-issue-form-action?tab=readme-ov-file#readme)\n- [Cloudflare Purge Cache Action](https://github.com/cssnr/cloudflare-purge-cache-action?tab=readme-ov-file#readme)\n- [Mozilla Addon Update Action](https://github.com/cssnr/mozilla-addon-update-action?tab=readme-ov-file#readme)\n- [Package Changelog Action](https://github.com/cssnr/package-changelog-action?tab=readme-ov-file#readme)\n- [NPM Outdated Check Action](https://github.com/cssnr/npm-outdated-action?tab=readme-ov-file#readme)\n- [Label Creator Action](https://github.com/cssnr/label-creator-action?tab=readme-ov-file#readme)\n- [Algolia Crawler Action](https://github.com/cssnr/algolia-crawler-action?tab=readme-ov-file#readme)\n- [Upload Release Action](https://github.com/cssnr/upload-release-action?tab=readme-ov-file#readme)\n- [Check Build Action](https://github.com/cssnr/check-build-action?tab=readme-ov-file#readme)\n- [Web Request Action](https://github.com/cssnr/web-request-action?tab=readme-ov-file#readme)\n- [Get Commit Action](https://github.com/cssnr/get-commit-action?tab=readme-ov-file#readme)\n\n\u003cdetails\u003e\u003csummary\u003e❔ Unpublished Actions\u003c/summary\u003e\n\nThese actions are not published on the Marketplace, but may be useful.\n\n- [cssnr/create-files-action](https://github.com/cssnr/create-files-action?tab=readme-ov-file#readme) - Create various files from templates.\n- [cssnr/draft-release-action](https://github.com/cssnr/draft-release-action?tab=readme-ov-file#readme) - Keep a draft release ready to publish.\n- [cssnr/env-json-action](https://github.com/cssnr/env-json-action?tab=readme-ov-file#readme) - Convert env file to json or vice versa.\n- [cssnr/push-artifacts-action](https://github.com/cssnr/push-artifacts-action?tab=readme-ov-file#readme) - Sync files to a remote host with rsync.\n- [smashedr/update-release-notes-action](https://github.com/smashedr/update-release-notes-action?tab=readme-ov-file#readme) - Update release notes.\n- [smashedr/combine-release-notes-action](https://github.com/smashedr/combine-release-notes-action?tab=readme-ov-file#readme) - Combine release notes.\n\n---\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e📝 Template Actions\u003c/summary\u003e\n\nThese are basic action templates that I use for creating new actions.\n\n- [javascript-action](https://github.com/smashedr/javascript-action?tab=readme-ov-file#readme) - JavaScript\n- [typescript-action](https://github.com/smashedr/typescript-action?tab=readme-ov-file#readme) - TypeScript\n- [py-test-action](https://github.com/smashedr/py-test-action?tab=readme-ov-file#readme) - Dockerfile Python\n- [test-action-uv](https://github.com/smashedr/test-action-uv?tab=readme-ov-file#readme) - Dockerfile Python UV\n- [docker-test-action](https://github.com/smashedr/docker-test-action?tab=readme-ov-file#readme) - Docker Image Python\n\nNote: The `docker-test-action` builds, runs and pushes images to [GitHub Container Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).\n\n---\n\n\u003c/details\u003e\n\nFor a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssnr%2Fcreate-files-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcssnr%2Fcreate-files-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcssnr%2Fcreate-files-action/lists"}