Skip to content

Merge pull request #8825 from processing/all-contributors/add-adrienneg #41

Merge pull request #8825 from processing/all-contributors/add-adrienneg

Merge pull request #8825 from processing/all-contributors/add-adrienneg #41

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 }}