This will update your README file every 30 minutes:
name: Update README
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Update this repo's README with latest membership from API
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Update README
env:
WORKING_DIRECTORY: ./path/to/readme/folder # README usually located at root-level, so it's should be `.`
uses: animeworldid/membership-readme@version # Change this with latest version
Add following code to your README:
# Administrator
<!--START_SECTION:administrator_list-->
<!--END_SECTION:administrator_list-->
<!--START_SECTION:motm_list-->
<!--END_SECTION:motm_list-->
# Supporter
<!--START_SECTION:supporter_list-->
<!--END_SECTION:supporter_list-->