A GitHub Action to automatically update Hugo sites (WIP).
- name: Update Hugo content with RSS feed
uses: HugoBlox/gh-action-updater@v2
with:
feed-url: 'https://example.com/feed.xml'
readme-section: 'recent-posts'
max: 5
template: '* [{{ title }}]({{ link }})'
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
message: 'docs: update recent posts'
Input | Required | Default | Description |
---|---|---|---|
feed-url |
Yes | - | RSS feed URL to fetch content from |
readme-section |
Yes | - | Section in README to update |
max |
No | 5 |
Maximum number of RSS feed items to include |
template |
No | * [{{ title }}]({{ link }}) |
Markdown template for each item |
github_token |
No | ${{ github.token }} |
GitHub token for authentication |
branch |
No | Default branch | Target branch to update |
message |
No | docs: update |
Commit message |
- Node.js 20 or later
- npm
npm install
npm run build
npm run clean
- Fork the repository
- Create a feature branch
- Make your changes
- Run
npm run build
to ensure the action compiles - Create a pull request
This project is licensed under the MIT License.