-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
40 lines (33 loc) · 1.13 KB
/
contributors-png.yml
File metadata and controls
40 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Generate Contributors PNG
on:
push:
paths:
- '.all-contributorsrc'
jobs:
build:
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install canvas
- name: Run contributors-png generator
run: node utils/contributors-png.js
- name: Reset all changes except contributors.png
run: |
git restore --staged .
git add contributors.png
git checkout -- .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "Update contributors.png from .all-contributorsrc"
branch: update-contributors-png
title: "chore: update contributors.png from .all-contributorsrc"
body: "This PR updates the contributors.png to reflect changes in .all-contributorsrc"
add-paths: contributors.png
token: ${{ secrets.ACCESS_TOKEN }}