Skip to content

Instantly share code, notes, and snippets.

@Sachin-chaurasiya
Last active September 1, 2024 04:39
Show Gist options
  • Save Sachin-chaurasiya/c3296a3d4526c0aaaf6112d018bd206f to your computer and use it in GitHub Desktop.
Save Sachin-chaurasiya/c3296a3d4526c0aaaf6112d018bd206f to your computer and use it in GitHub Desktop.
Workflow with GitHub action to fetch and display your latest blog from Hashnode in a visually pleasing manner
name: 'Hashnode Blogs'
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs every hour, on the hour.
jobs:
update_blogs:
name: 'Hashnode Latest Blogs'
runs-on: ubuntu-latest
steps:
- name: 'Fetch Repository Contents'
uses: actions/checkout@main
- name: 'Hashnode Blog Action'
uses: "Sachin-chaurasiya/hashnode-blog-action@v0.0.8"
with:
HASHNODE_PUBLICATION_NAME: 'blog.sachinchaurasiya.dev'
FORMAT: 'list'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment