Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom publish date formatting #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This GitHub Action converts RSS / Atom feed entries to Markdown files. It fetche
- `feed_urls_file` (optional): Path to a JSON file containing an array of feed URLs or a plain text file with one URL per line.
- `template_file` (required): The path to the template file.
- `output_dir` (required): The directory where the generated Markdown files will be saved.
- `date_format` (optional): The format to use for publish dates (see date-fns for syntax). Defaults to the output of javascript's `Date.toString()`

> Note: You must provide either `feed_url` or `feed_urls_file`, but not both.

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ inputs:
output_dir:
description: "The directory where the generated Markdown files will be saved"
required: true
date_format:
description: "The format to use for publish dates (see date-fns for syntax). Defaults to the output of javascript's Date.toString()"
required: false
runs:
using: 'node20'
main: 'dist/index.js'
Loading