{"id":13624252,"url":"https://github.com/varunsridharan/action-hashnode-blog","last_synced_at":"2025-04-30T17:03:41.253Z","repository":{"id":40659349,"uuid":"309979880","full_name":"varunsridharan/action-hashnode-blog","owner":"varunsridharan","description":"Fetch \u0026 Display Your Hashnode blog posts.","archived":false,"fork":false,"pushed_at":"2023-05-10T02:38:46.000Z","size":153,"stargazers_count":34,"open_issues_count":2,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T17:03:33.357Z","etag":null,"topics":["actions","blog","github","github-action","github-action-nodejs","github-actions","hashnode","hashnode-blog","pinned-gist"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/hashnode-blog","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varunsridharan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-04T11:16:19.000Z","updated_at":"2024-04-22T10:52:06.000Z","dependencies_parsed_at":"2024-06-18T18:31:53.585Z","dependency_job_id":null,"html_url":"https://github.com/varunsridharan/action-hashnode-blog","commit_stats":{"total_commits":27,"total_committers":5,"mean_commits":5.4,"dds":0.5185185185185186,"last_synced_commit":"3327ce9d0622009082ddfe06ba86987398f3e403"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":"varunsridharan/.template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-hashnode-blog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-hashnode-blog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-hashnode-blog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Faction-hashnode-blog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varunsridharan","download_url":"https://codeload.github.com/varunsridharan/action-hashnode-blog/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748935,"owners_count":21637414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","blog","github","github-action","github-action-nodejs","github-actions","hashnode","hashnode-blog","pinned-gist"],"created_at":"2024-08-01T21:01:40.541Z","updated_at":"2025-04-30T17:03:41.218Z","avatar_url":"https://github.com/varunsridharan.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://hashnode.com/\"\u003e\n        \u003cimg src=\"https://cdn.svarun.dev/common/hashnode/icon.png\" width=\"150px\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eHashnode Blogs - \u003ci\u003eGithub Action\u003c/i\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003e~ Fetch \u0026 Display Your Latest Blog Posts From \u003ca href=\"https://hashnode.com/\"\u003e\u003cstrong\u003eHashnode\u003c/strong\u003e\u003c/a\u003e ~\u003c/p\u003e\n\n## ⚙️ Configuration\n| Option | Description | Default |\n| :---: | :---: | :---: |\n| `TYPE` | Set this to `GIST` if you want to display latest posts in a pinned gists | `REPOSITORY` |\n| `FILE` | Provide file location or provide **GIST ID** if `TYPE` set to `GIST` | `README.md` |\n| `USERNAME` | Your Hashnode Username | - |\n| `BLOG_URL` | Your blog url. you can leave it empty to auto generate. but if you are facing any issue with auto generated link. make sure to provide your blog url here. | - |\n| `STYLE` | Options :  `list`, `list-ordered`, `blog`, `blog-right`, `blog-left`, `blog-alternate`, `blog-grid` | `list` |\n| `COUNT` | No of latest posts to display | `6` |\n\n---\n### Please check the [Demo Repository](https://github.com/varunsridharan/demo-action-hashnode-blog) to preview all possible **Styles**\n---\n\n## 🚀 Usage\n\n### 💾  In Repository File\n#### 1. Add The Below Content To Your README.md / Any file you want to showcase\n```markdown\n## My Latest Blog Posts 👇\n\u003c!-- HASHNODE_BLOG:START --\u003e\n\u003c!-- HASHNODE_BLOG:END --\u003e\n```\n#### 2. Configure The Worklfow\n\u003c!-- START RAW --\u003e\n```yaml\nname: \"📚 Blog Updater\"\n\non:\n  workflow_dispatch:\n  schedule:\n    - cron: '0 0 * * *' # Runs Every Day\n\njobs:\n  update_blogs:\n    name: \"Update Blogs\"\n    runs-on: ubuntu-latest\n    steps:\n      - name: \"📥  Fetching Repository Contents\"\n        uses: actions/checkout@main\n\n      - name: \"📚  Hashnode Updater\"\n        uses: \"varunsridharan/action-hashnode-blog@main\"\n        with:\n          USERNAME: 'your-username' # Hashnode Username\n          BLOG_URL: 'your-blog-url' # Blog URL\n          COUNT: 10 # MAX Visisble\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\u003c!-- END RAW --\u003e\n\n\n### 📌  In Pinned Gists\n1. Create a new public GitHub Gist (https://gist.github.com/)\n2. Create a token with the `gist` scope.\n3. [Create a secret](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) 🔑 by going to **GitHub repo \u003e Settings \u003e Secrets \u003e New secret** with the following:\n    1. Name : `GIST_TOKEN`\n    2. Value : The token with the `gist` scope generated previously.\n\n\u003c!-- START RAW --\u003e\n```yaml\nname: \"📚 Blog Updater\"\n\non:\n  workflow_dispatch:\n  schedule:\n    - cron: '0 0 * * *' # Runs Every Day\n\njobs:\n  update_blogs:\n    name: \"Update Blogs\"\n    runs-on: ubuntu-latest\n    steps:\n      - name: \"📚  Hashnode Updater\"\n        uses: \"varunsridharan/action-hashnode-blog@main\"\n        with:\n          USERNAME: 'your-username' # Hashnode Username\n          COUNT: 5 # MAX Visisble\n          FILE: \"88ca4064876a7971a1c61e8e19e42b98\" # GIST ID\n          TYPE: \"gist\"\n        env:\n          GITHUB_TOKEN: ${{ secrets.GIST_TOKEN }} # Personal Access Token With Gists Scope\n```\n\u003c!-- END RAW --\u003e\n\n\u003c!-- START common-footer.mustache --\u003e\n## 📝 Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n[Checkout CHANGELOG.md](https://github.com/varunsridharan/action-hashnode-blog/blob/main/CHANGELOG.md)\n\n\n## 🤝 Contributing\nIf you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/action-hashnode-blog/issues/).\n\n\n## 📜  License \u0026 Conduct\n- [**MIT License**](https://github.com/varunsridharan/action-hashnode-blog/blob/main/LICENSE) © [Varun Sridharan](website)\n- [Code of Conduct](https://github.com/varunsridharan/.github/blob/main/CODE_OF_CONDUCT.md)\n\n\n## 📣 Feedback\n- ⭐ This repository if this project helped you! :wink:\n- Create An [🔧 Issue](https://github.com/varunsridharan/action-hashnode-blog/issues/) if you need help / found a bug\n\n\n## 💰 Sponsor\n[I][twitter] fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here][website].\nIf you, or your company, use any of my projects or like what I’m doing, kindly consider backing me. I'm in this for the long run.\n\n- ☕ How about we get to know each other over coffee? Buy me a cup for just [**$9.99**][buymeacoffee]\n- ☕️☕️ How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**][buymeacoffee]\n- 🔰         We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**][paypal]\n- 🚀         Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**][paypal]\n\n\u003c!-- Personl Links --\u003e\n[paypal]: https://sva.onl/paypal\n[buymeacoffee]: https://sva.onl/buymeacoffee\n[twitter]: https://sva.onl/twitter/\n[website]: https://sva.onl/website/\n\n\n## Connect \u0026 Say 👋\n- **Follow** me on [👨‍💻 Github][github] and stay updated on free and open-source software\n- **Follow** me on [🐦 Twitter][twitter] to get updates on my latest open source projects\n- **Message** me on [📠 Telegram][telegram]\n- **Follow** my pet on [Instagram][sofythelabrador] for some _dog-tastic_ updates!\n\n\u003c!-- Personl Links --\u003e\n[sofythelabrador]: https://www.instagram.com/sofythelabrador/\n[github]: https://sva.onl/github/\n[twitter]: https://sva.onl/twitter/\n[telegram]: https://sva.onl/telegram/\n\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003ci\u003eBuilt With ♥ By \u003ca href=\"https://sva.onl/twitter\"  target=\"_blank\" rel=\"noopener noreferrer\"\u003eVarun Sridharan\u003c/a\u003e \u003ca href=\"https://en.wikipedia.org/wiki/India\"\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/flag-india.jpg\" width=\"20px\"/\u003e\u003c/a\u003e \u003c/i\u003e \u003cbr/\u003e\u003cbr/\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/codeispoetry.png\"/\u003e\n\u003c/p\u003e\n\n---\n\n\n\u003c!-- END common-footer.mustache --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Faction-hashnode-blog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarunsridharan%2Faction-hashnode-blog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Faction-hashnode-blog/lists"}