-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
47 lines (39 loc) · 1.29 KB
/
stewards-update.yml
File metadata and controls
47 lines (39 loc) · 1.29 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
41
42
43
44
45
46
47
name: Update Steward Table in README
on:
push:
branches: [main]
paths:
- stewards.yml
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
build:
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "20"
- name: Install dependencies
run: npm install js-yaml
- name: Run table generator
run: node utils/stewards-table.js
- name: Reset all changes except README.md
run: |
git restore --staged .
git add README.md
git checkout -- .
- name: Create Pull Request
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676
with:
commit-message: "Update README table from stewards.yml"
branch: update-readme-table
title: "chore: update README table from stewards.yml"
body: "This PR updates the README.md table to reflect changes in stewards.yml."
add-paths: README.md