5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 05:11:29 +08:00

Update generate-contributors.yml

This commit is contained in:
Lea Anthony 2023-04-14 20:04:12 +10:00 committed by GitHub
parent 39a7ab5856
commit a8339c9e93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,29 +1,40 @@
name: Generate Contributors Image name: update-contributors-svg
on: on:
workflow_dispatch: # Can trigger manually
schedule: schedule:
- cron: '0 1 * * 0' # At 01:00 on Sunday. - cron: '0 7 * * *' # Schedule on everyday 7:00
push:
branches:
- master
jobs: jobs:
contributors: update-svg:
runs-on: ubuntu-latest name: Update contributors SVG
if: github.repository == 'wailsapp/wails' runs-on: ubuntu-latest # You can also try macos-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: jaywcjlove/github-action-contributors@main
id: contributors - name: Set node
uses: actions/setup-node@v3
with: with:
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) node-version: lts/*
avatarSize: 100 # Set the avatar size.
- name: Install pnpm
- name: Modify htmlTable credits.md uses: pnpm/action-setup@v2.2.2
uses: jaywcjlove/github-action-modify-file-content@main
with: with:
openDelimiter: ' <!--GAMFC_DELIMITER-->' version: 7
closeDelimiter: '<!--GAMFC_DELIMITER-END-->'
path: website/src/pages/credits.mdx - name: Install deps
body: '${{steps.contributors.outputs.htmlTable}}' run: pnpm install
ref: chore/update-contributors
- name: Run SVG generation script
run: pnpx make-github-contributor-svg -t ${{ secrets.GITHUB_TOKEN }} -o wailsapp -r wails
- name: Move svg
run: mv .github-contributors/*.svg website/static/img/
- name: Commit
uses: EndBug/add-and-commit@v4
with:
message: "chore(workflow): update contributors image"
add: "website/static/img/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}