wails/.github/workflows/generate-contributors.yml
2023-04-11 21:29:41 +10:00

38 lines
1.2 KiB
YAML

name: Generate Contributors Image
on:
schedule:
- cron: '0 1 * * 0' # At 01:00 on Sunday.
push:
branches:
- master
jobs:
contributors:
runs-on: ubuntu-latest
if: github.repository == 'wailsapp/wails'
steps:
- uses: actions/checkout@v3
- uses: jaywcjlove/github-action-contributors@main
id: contributors
with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\])
avatarSize: 100 # Set the avatar size.
- name: Modify htmlTable credits.md
uses: jaywcjlove/github-action-modify-file-content@main
with:
openDelimiter: ' <!--GAMFC_DELIMITER-->'
closeDelimiter: '<!--GAMFC_DELIMITER-END-->'
path: website/src/pages/credits.mdx
body: '${{steps.contributors.outputs.htmlTable}}'
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "chore: update contributors.svg"
add-paths: "website/src/pages/credits.mdx"
title: Update Contributors Image
body: Generated new image
branch: chore/update-contributors
delete-branch: true