This action gets a list of dev meme image URLs to a comment block in the README.md, it will replace the image src field with the first url list in the comment block when it runs. When it comes to an empty list in the comment block, this action will get a new one.
Just place an img
tag with alt="MEME"
in your README, for example <img alt="MEME" />
, you can also set the width or height if you want to.
If you want to set the amount of URLs that saved to the comment block, you can set the fetch_num
. The default is 100.
You can optionally set the commit author and email with commit_author
and commit_email
.
(NOTICE
name: Dev Memes
on:
# run on every 24 hours
schedule:
- cron: '0 */24 * * *'
# or run on every push on the master branch
push:
branches:
- master
jobs:
deploy:
name: Update Dev Meme
runs-on: ubuntu-latest
steps:
- name: Update meme
uses: cgyinthehouse/[email protected]
with:
fetch_num: 50
commit_author: Mike Oxlong
commit_email: [email protected]
-
Automatically create meme comment block. - Maybe set the image size from Actions?
- For diversity, host a meme api server or randomize the list from the api
- Make the meme comment block optional