Last active
September 1, 2024 04:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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