readme-action

How to use

A simple example.

- uses: beiyuouo/readme-action@main
    with:
    blog_rss_link: https://blog.bj-yan.top/index.xml
    douban_name: 179948994

A full example.

name: Build Readme

on:
  schedule:
    - cron: "0 0 * * *"
  workflow_dispatch:
  push:
    branches: [main]

jobs:
  update-social:
    runs-on: ubuntu-latest
    steps:
      - uses: beiyuouo/readme-action@main
        with:
          blog_rss_link: https://blog.bj-yan.top/index.xml
          blog_limit: 5
          blog_time_format: "%a, %d %b %Y %H:%M:%S %z"
          douban_name: 179948994
          douban_limit: 5
          commit_message: Updated README Profile by readme action
          time_zone: "Asia/Shanghai"

Remember to add following prompt to your GitHub Profile.

<!-- START_SECTION:blog -->
<!-- END_SECTION:blog -->

<!-- START_SECTION:douban -->
<!-- END_SECTION:douban -->

<!-- START_SECTION:github -->
<!-- END_SECTION:github -->

Prettier example

<table width="100%" align="center">
<tr>
<td valign="top" width="50%">

#### ?‍♀️ <a href="https://blog.bj-yan.top/" target="_blank">Recent Blog</a>

<!-- START_SECTION:blog -->
<!-- END_SECTION:blog -->
</td>
<td valign="top" width="50%">

#### ?‍♂️ <a href="https://blog.bj-yan.top/" target="_blank">Funny Soul</a>

<!-- START_SECTION:douban -->
<!-- END_SECTION:douban -->
</td>
</tr>
<tr>
<td valign="top" width="100%" colspan="2">

#### ? <a href="https://github.com/beiyuouo" target="_blank">Recent Activity</a>

<!-- START_SECTION:github -->
<!-- END_SECTION:github -->

</td>
</tr>
</table>

Reference

  • Thanks to zylele for their great work.

GitHub

View Github