Skip to content

Instantly share code, notes, and snippets.

@Sachin-chaurasiya
Created January 31, 2024 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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@main"
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