diff --git a/.github/workflows/stewards-update.yml b/.github/workflows/stewards-update.yml index 3d2b56ea33..e7d004d595 100644 --- a/.github/workflows/stewards-update.yml +++ b/.github/workflows/stewards-update.yml @@ -9,6 +9,7 @@ on: jobs: build: + if: github.ref == 'refs/heads/main' && github.repository == 'processing/p5.js' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -16,26 +17,26 @@ jobs: - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + 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@v5 + uses: peter-evans/create-pull-request@v7 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: README.md + 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 token: ${{ secrets.ACCESS_TOKEN }}