mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Generate Sponsor Image
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
jobs:
|
|
update-sponsors:
|
|
name: Update Sponsors
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'wailsapp/wails'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 20.x
|
|
|
|
- name: Update Sponsors
|
|
run: cd scripts/sponsors && chmod 755 ./generate-sponsor-image.sh && ./generate-sponsor-image.sh
|
|
env:
|
|
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
|
|
SPONSORKIT_GITHUB_LOGIN: wailsapp
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v4
|
|
with:
|
|
commit-message: "chore: update sponsors.svg"
|
|
add-paths: "website/static/img/sponsors.svg"
|
|
title: "chore: update sponsors.svg"
|
|
body: |
|
|
Auto-generated by the sponsor image workflow
|
|
|
|
[skip ci] [skip actions]
|
|
branch: update-sponsors
|
|
base: master
|
|
delete-branch: true
|
|
draft: false
|