Skip to content

Wathsara/medium-blogs-readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Medium Blogs in README

Basic idea of this is to show what you have written in Medium in your Github README for a given period.

Example

Update your README

Add the comment below your README.md

<!--START_SECTION:medium-->
<!--END_SECTION:medium-->

The list will be between the these two sections.

Create a workflow

If you're executing the workflow on your Profile repository (<username>/<username>), You don't need a GitHub access token. If not create a Github access token and add it to secret with the name GH_TOKEN

on:
  schedule:
      # Runs at every 2 days. Schedule it as you want.
      - cron: '0 0 */2 * *'
jobs:  
  update-readme:
    name: Update this repo's README
    runs-on: ubuntu-latest
    steps:
      - uses: wathsara/medium-blogs-readme@master
        with:
          MEDIUM_HANDLER: '@wathsara' //Your Medium Handler
          GH_TOKEN: ${{ secrets.GH_TOKEN }}
          REPOSITORY: <username>/<repo>
          DAYS: 30 // Show blogs wrote in last 30 days