Skip to content

Commit

Permalink
Content Update Workflow: Only run on the main WordPress repo, cleanup…
Browse files Browse the repository at this point in the history
… the branch after merge, and use a easy to recognise branch name.
  • Loading branch information
dd32 authored Feb 23, 2024
1 parent c898fb7 commit 6320e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/content-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ permissions:

jobs:
content-update:
if: github.repository_owner == 'WordPress'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -32,6 +33,8 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
branch: automated/content-update
delete-branch: true
add-paths: source/wp-content/themes/wporg-main-2022/**/*.php
title: 'Content updates from Page Editor'
commit-message: '[automated] Sync content from Page Editor.'
Expand Down

0 comments on commit 6320e6a

Please sign in to comment.