Easily create various file types with custom options. Write the data to a file or use the output.
| Input | Default | Input Description |
|---|---|---|
| type | Required | Type of File to Create |
| file | - | Output File to Create |
| data | - | File Data for type |
Currently only supports redirect html file.
Output file path to write file; otherwise use the output.
Type specific data in YAML format.
How to Pass Data
data: |
url: https://smashedr.github.io/github-projects/
text: /github-projects
title: Ralf Broke It
timer: 5| Output | Description |
|---|---|
| content | File Content |
- name: 'Create Files Action'
id: files
uses: cssnr/create-files-action@master
- name: 'Echo Output'
run: |
echo "content: '${{ steps.files.outputs.content }}'"Creates an HTML redirect page with timer and link.
| Data | Default Value | Description of Input |
|---|---|---|
| url | - | URL to Redirect too |
| text | url | Text for URL link |
| title | Redireting |
Title of the page |
| timer | 5 |
Redirect timer seconds |
View Step Example
- name: 'Redirect'
id: redirect
uses: cssnr/create-files-action@master
with:
type: 'redirect'
file: 'index.html'
data: |
url: https://smashedr.github.io/github-projects/
text: /github-projects
title: Rolf Broke
timer: 3Creates a robots.txt to block all robots.
View Step Example
- name: 'Robots'
id: robots
uses: cssnr/create-files-action@master
with:
type: 'robots'
file: 'robots.txt'💡 Click on an example heading to expand or collapse the example.
Coming soon.
For more examples, you can check out other projects using this action:
https://github.com/cssnr/create-files-action/network/dependents
For general help or to request a feature see:
- Q&A Discussion: https://github.com/cssnr/create-files-action/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/create-files-action/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results you can:
- Report an Issue: https://github.com/cssnr/create-files-action/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: https://cssnr.github.io/feedback/
For more information, see the CSSNR SUPPORT.md.
If you would like to submit a PR, please review the CONTRIBUTING.md.
Please consider making a donation to support the development of this project and additional open source projects.
Additionally, you can support other GitHub Actions I have published:
- Stack Deploy Action
- Portainer Stack Deploy Action
- Docker Context Action
- Actions Up Action
- Zensical Action
- VirusTotal Action
- Mirror Repository Action
- Update Version Tags Action
- Docker Tags Action
- TOML Action
- Update JSON Value Action
- JSON Key Value Check Action
- Parse Issue Form Action
- Cloudflare Purge Cache Action
- Mozilla Addon Update Action
- Package Changelog Action
- NPM Outdated Check Action
- Label Creator Action
- Algolia Crawler Action
- Upload Release Action
- Check Build Action
- Web Request Action
- Get Commit Action
❔ Unpublished Actions
These actions are not published on the Marketplace, but may be useful.
- cssnr/create-files-action - Create various files from templates.
- cssnr/draft-release-action - Keep a draft release ready to publish.
- cssnr/env-json-action - Convert env file to json or vice versa.
- cssnr/push-artifacts-action - Sync files to a remote host with rsync.
- smashedr/update-release-notes-action - Update release notes.
- smashedr/combine-release-notes-action - Combine release notes.
📝 Template Actions
These are basic action templates that I use for creating new actions.
- javascript-action - JavaScript
- typescript-action - TypeScript
- py-test-action - Dockerfile Python
- test-action-uv - Dockerfile Python UV
- docker-test-action - Docker Image Python
Note: The docker-test-action builds, runs and pushes images to GitHub Container Registry.
For a full list of current projects visit: https://cssnr.github.io/
