Skip to content

Commit ee26b2d

Browse files
authored
Merge pull request #8136 from MannuVilasara/fix/invalid-action-input
fix: (workflow) Invalid action input
2 parents 0a31ef8 + 1838dc5 commit ee26b2d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/stewards-update.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,34 @@ on:
99

1010
jobs:
1111
build:
12+
if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js'
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v3
1516

1617
- name: Setup Node
1718
uses: actions/setup-node@v4
1819
with:
19-
node-version: '20'
20+
node-version: "20"
2021

2122
- name: Install dependencies
2223
run: npm install js-yaml
2324

2425
- name: Run table generator
2526
run: node utils/stewards-table.js
26-
27+
2728
- name: Reset all changes except README.md
2829
run: |
2930
git restore --staged .
3031
git add README.md
3132
git checkout -- .
32-
33+
3334
- name: Create Pull Request
34-
uses: peter-evans/create-pull-request@v5
35+
uses: peter-evans/create-pull-request@v7
3536
with:
3637
commit-message: "Update README table from stewards.yml"
3738
branch: update-readme-table
38-
title: 'chore: update README table from stewards.yml'
39-
body: 'This PR updates the README.md table to reflect changes in stewards.yml.'
40-
add: README.md
39+
title: "chore: update README table from stewards.yml"
40+
body: "This PR updates the README.md table to reflect changes in stewards.yml."
41+
add-paths: README.md
4142
token: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)