Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sachin-chaurasiya/hashnode-blog-action
GitHub action to fetch and display your latest blog from Hashnode in a visually pleasing manner
https://github.com/sachin-chaurasiya/hashnode-blog-action
github-actions github-api hashnode-api hashnode-blog hashnode-blog-action
Last synced: 3 months ago
JSON representation
GitHub action to fetch and display your latest blog from Hashnode in a visually pleasing manner
- Host: GitHub
- URL: https://github.com/sachin-chaurasiya/hashnode-blog-action
- Owner: Sachin-chaurasiya
- License: mit
- Created: 2023-11-24T12:05:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-29T03:14:17.000Z (9 months ago)
- Last Synced: 2024-05-02T02:34:03.005Z (9 months ago)
- Topics: github-actions, github-api, hashnode-api, hashnode-blog, hashnode-blog-action
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/hashnode-blog-action
- Size: 900 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
Hashnode Blog GitHub Action - Latest Hashnode Public API Support
GitHub action to fetch and display your latest blog from Hashnode in a visually pleasing manner
## ⚙️ Configuration
| Option | Description | Default | Required |
| :-------------------------: | :--------------------------------------------------------: | :---------: | :------: |
| `HASHNODE_PUBLICATION_NAME` | Your hashnode publication name, Example: blog.hashnode.dev | null | true |
| `POST_COUNT` | Number of posts count | 6 | false |
| `FORMAT` | Output format (table, list, card, stacked) | `table` | false |
| `FILE` | Filename to save the output | `README.md` | false |
| `DEBUG` | Debug mode | false | false |## 🚀 Usage
### Step 1: Include the following content in your `README.md` or any file for display
```markdown
## My Latest Blog Posts 👇```
### Step 2: Configure The Workflow
```yaml
name: 'Hashnode Blogs'on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs Every Dayjobs:
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.hashnode.dev'
POST_COUNT: 6
FORMAT: 'list'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```## 🚀 Live Example : [Sachin-chaurasiya/Sachin-chaurasiya](https://github.com/Sachin-chaurasiya/Sachin-chaurasiya?tab=readme-ov-file#recent-blog-posts-%EF%B8%8F)
### Table
![Table View](https://github.com/Sachin-chaurasiya/hashnode-blog-action/assets/59080942/413bac2d-6dfc-49a0-ac01-9286a8aeebf3)
### List
![List View](https://github.com/Sachin-chaurasiya/hashnode-blog-action/assets/59080942/844b3e39-1d37-48d0-87af-82756e42c483)
### Card
![Card View](https://github.com/Sachin-chaurasiya/hashnode-blog-action/assets/59080942/8bcbbfed-e08b-4cf9-b1c8-d71d405ab084)
### Stacked
![image](https://github.com/Sachin-chaurasiya/hashnode-blog-action/assets/59080942/d1b45bda-6cdb-4614-8d8a-cdf47a3efc36)
## Local Development
### Step1 : Fork and clone the repository
```shell
git clone https://github.com//hashnode-blog-action.gitcd hashnode-blog-action
```### Step2: Install the dependencies
```shell
npm install
```### Step3: Make your changes
### Step4: Adding tests (if applicable)
Add unit test for your changes [__tests__](https://github.com/Sachin-chaurasiya/hashnode-blog-action/tree/main/__tests__)### Step5: Run the checks and package your changes
> The below command will
- Format your code
- Lint your code
- Run the unit tests and coverage
- And Finally bundle everything```shell
npm run all
```
### Step6: Raise a PR for your contribution```shell
git add .
git commit -m "meaningful commit message"
git push
```## 🛡️ License
Hashnode blog action is licensed under the MIT License - see the
[LICENSE](https://github.com/Sachin-chaurasiya/hashnode-blog-action/blob/main/LICENSE)
file for details.## Contributors
We ❤️ all contributions, big and small! Check out our
[CONTRIBUTING](./CONTRIBUTING.md) guide to get started and let us know how we
can help.Don't want to miss anything? Give the project a ⭐ 🚀
A HUGE THANK YOU to all our supporters!
## Stargazers
[![Stargazers of hashnode-blog-action](http://reporoster.com/stars/Sachin-chaurasiya/hashnode-blog-action)](https://github.com/Sachin-chaurasiya/hashnode-blog-action/stargazers)
## Contributors