I want publish acation used by myself so, I modify the source code amd create a new repo, so that I can publish the action.
This GitHub Action updates your repo README.md to show your latest activity.
Required The header of your README.md. Markdown supported.
The subheader of your README.md. Markdown supported. Default ""
.
The footer of your README.md. Markdown supported. Default ""
.
Path of your README.md file. Default "README.md"
.
Override the default branch/tag ref. Default "master"
.
Number of repositories to load. Default 0
.
Number of repositories to load per row. Default "3"
.
Length (in pixels) of each side of the square image. Default "150"
.
Types of event to exclude from the recent activity table in a JSON array. Recent events, such as "PushEvent"
or "ForkEvent"
, can be found at https://api.github.com/users/{username}/events, replacing username
with your username. Example input would be '["WatchEvent", "ForkEvent"]'
. Default "[]"
.
Choose include or exclude the repositories in recent activity table.
- required: false
- type:
String
- value:
exclude
|include
- default:
exclude
Whether show last 14 days repo in readme
- required:
false
- type:
Boolean
- default:
false
Show last 14 days repo traffic data in subhead
or footer
- type:
String
- value:
subhead
|footer
- default:
subhead
Repositories to include or exclude from the recent activity tables in a JSON array. Example input would be '["theboi/theboi", "username/repo"]'
. Default "[]"
.
Customise the README.md file format without forking this repository. Markdown supported.
Use these reserved strings wrapped in ${
and }
(For instance, ${header}
) to reference certain content:
repoTable
: Set of tables with most recent repository activity.header
subhead
footer
Default: |
## ${header}
${subhead}
${repoTable}
${footer}
Note: |
denotes a multiline string block in YAML. Ensure you indent properly when setting this.
Required Set this to: ${{ secrets.GITHUB_TOKEN }}
Array of recent repositories to be displayed on your profile README.md.
- Create a repository named your username, add a
README.md
file. - Create a workflow and paste this under
steps
:
- name: github-update-readme-v2
uses: Ligengxin96/github-update-readme-v2@v1.2-Beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
header: "This is header content"
subhead: "This is subhead content"
footer: "This is footer content"
- You might want to schedule this to run every 10 mins, paste this under
on
:
schedule:
- cron: "*/10 * * * *"
-
This will now run and fetch repositories you were most recently active on, every 10 mins.
-
Important Add a
DISPLAY.jpg
to your repositories (including username/username) to show in the table. If image does not exist, will default toDISPLAY.jpg
on username/username.
- Due to GitHub's API rate-limiting, this GitHub Action will, at most, only check your 1000 most recent activities.
- This is also my first GitHub Action so feel free to suggest improvements/submit a PR. Thanks!