File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Generate Contributors PNG
2+
3+ on :
4+ push :
5+ paths :
6+ - ' .all-contributorsrc'
7+
8+ jobs :
9+ build :
10+ if : github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+
15+ - name : Setup Node
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : 20
19+
20+ - name : Install system deps for canvas
21+ run : |
22+ sudo apt-get update
23+ sudo apt-get install -y \
24+ libcairo2-dev \
25+ libjpeg-dev
26+
27+ - name : Install dependencies
28+ run : npm install canvas node-fetch
29+
30+ - name : Run contributors-svg generator
31+ run : node utils/contributors-png.js
32+
33+ - name : Reset all changes except contributors.png
34+ run : |
35+ git restore --staged .
36+ git add contributors.svg
37+ git checkout -- .
38+
39+ - name : Create Pull Request
40+ uses : peter-evans/create-pull-request@v7
41+ with :
42+ commit-message : " Update contributors.png from .all-contributorsrc"
43+ branch : update-contributors-svg
44+ title : " chore: update contributors.png from .all-contributorsrc"
45+ body : " This PR updates the contributors.png to reflect changes in .all-contributorsrc"
46+ add-paths : contributors.svg
47+ token : ${{ secrets.ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments