DEV Community

Cover image for Update your dev.to articles into your Github profile

Update your dev.to articles into your Github profile

JackTT on September 14, 2023

In this article, I'll share you how to update your latest articles on dev.to into your Github profile. What is Github profile GitHub ...
Collapse
 
barrymichaeldoyle profile image
Barry Michael Doyle • • Edited

Awesome article!

It's probably worth noting for those who don't know, the update-articles.yml is a cron job that is set to run everyday 0:15 AM. So don't expect your GitHub profile to be updated immediately... You can obviously tweak that at the start to just check that it is working sooner rather than waiting overnight ;)

Collapse
 
ruthmoog profile image
ruthmoog •

Really cool using jobs for updating the articles. 👍

Collapse
 
kasir-barati profile image
Mohammad Jawad (Kasir) Barati • • Edited

Just a small feedback, there are those of us who have a README.md already and just want to append this at the end of existing README.md file. It is good to mention that in your article somewhere 🙂.

Collapse
 
sebastian_wessel profile image
Sebastian Wessel •

Thanks for this!
I added it, and it works as you can see here on my profile

Collapse
 
tanushree_aggarwal profile image
Tanushree Aggarwal •

Nice stuff! will definitely try this out!

Collapse
 
kumarkalyan profile image
Kumar Kalyan •

Great article definitely gonna try this out

Collapse
 
jacktt profile image
JackTT •

You can do it by placing your image in data/images/default-thumbnail.png

Collapse
 
tharos70 profile image
tharos70 •

Thanks a lot! It looks like something I was looking for!

Collapse
 
barrymichaeldoyle profile image
Barry Michael Doyle •

Just incase this catches anyone else out...

If your main branch is called 'master' instead of 'main', be sure to update that in the cron job, that caught me out :P

Collapse
 
jacktt profile image
JackTT •

Thank you.

Collapse
 
epi2024 profile image
Je Phiri •

Great

Collapse
 
ranggakd profile image
Retiago Drago •

thanks I will probably use it now
can you do it for Medium too? 😁

Collapse
 
jacktt profile image
JackTT •

Of course, I will do it soon!

Collapse
 
ranggakd profile image
Retiago Drago •

we will be waiting until then
I might wanna tinker it later 😀

Collapse
 
godot profile image
Godot •

It is giving me this error.

Error: .github#L1
No event triggers defined in on

What might've caused it?

Collapse
 
jacktt profile image
JackTT •

Could you share your repo?

Collapse
 
godot profile image
Godot •

This is the profile
This is the profile repository for the Readme

Thread Thread
 
jacktt profile image
JackTT •

Please update this block:

on:
 schedule:
  - cron: '15 0 * * *'
Enter fullscreen mode Exit fullscreen mode
Collapse
 
godot profile image
Godot •

The cron will run once every day right? Also would this work on Github organization page? ie. something like this.

Collapse
 
jacktt profile image
JackTT •

Regarding cron, you can define it as needed, such as every 6 hours, every 1 hour, or even every 5 minutes.
As for a GitHub organization page, I think it's the same as a personal page.

Collapse
 
theabdikhaliq profile image
Abdikhaliq Mohamoud •

Can it work with Substack?

Collapse
 
jacktt profile image
JackTT •

I've written an ArticleService interface that you can implement for data sources. If Substack has an API, I will do it for you.