-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shower some emoji-love!? #29
Comments
Setting a single emoji will be possible via the Thanks for the suggestion @utkarsh2102 |
Aye, you're right! Thanks, again, for your work on this! ❤️ |
Got some more ideas for this, we don't have to hard code emojis:
|
@utkarsh2102 this is released on version 1.2.8, you can now use it. Thanks a lot for the suggestion. |
It could be a good addition to allow emoji selection based on the post category. |
@LukePrior for now i am not planning to inegrate that in the workflow. You can easily acheive that by using the following code: name: Latest blog post workflow
on:
schedule: # Run workflow automatically
- cron: '0 * * * *' # Runs every hour, on the hour
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the Github Actions Workflow page directly
jobs:
update-readme-with-blog:
name: Update this repo's README with latest blog posts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Pull in dev.to posts
uses: gautamkrishnar/blog-post-workflow@master
with:
feed_list: "https://dev.to/feed/gautamkrishnar,https://www.gautamkrishnar.com/feed/"
item_exec: |
if (post.categories.includes("category-name")) {
post.title = "😃 " + post.title;
| |
Hi, thanks for this code. I am trying it out but I seem to be running into an issue. My Action: jobs:
update-readme-with-blog:
name: Update README blog posts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Pull in dev.to posts
uses: gautamkrishnar/blog-post-workflow@master
with:
feed_list: "https://lukeprior.github.io/blog/feed"
item_exec: |
if (post.categories.includes("SondeHub")) { post.title = "🎈 " + post.title; } My feed: https://lukeprior.github.io/blog/feed My logs: Result: Expected result: I was just wondering if you could spot any obvious errors as to why this might not be working? |
@LukePrior categories array is empty from your feed. Your feed should have |
i make this template :) |
Hi @gautamkrishnar,
Thanks for your work on this!
blog-post-workflow/blog-post-workflow.js
Lines 253 to 259 in 36be303
As I see it, the "Latest Blog Posts" section could you some emoji-love.
What I mean is, maybe we could use some emoji (at random from a pre-defined set) before the blog post. For example:
[$title]($url)
[$title]($url)
[$title]($url)
[$title]($url)
[$title]($url)
The text was updated successfully, but these errors were encountered: