Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Theme previews: use external action #7987

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Conversation

vcanales
Copy link
Contributor

Changes proposed in this Pull Request:

This PR changes the current theme preview workflow to use an external function that executes the same process, but has two advantages:

  1. It runs using pull_request_target, meaning that PRs created from forks will get previews too.
  2. The action can be shared with other repos with a similar structure to get Playground previews as well, such as the WordPress Community Themes repo.

We could also consider moving the repo, which is currently under my account, to the Automattic org.

Related issue(s):

Related to the discussion here cc. @adamziel @mikachan

This PR changes the current theme preview workflow to use an external
function that executes the same process, but has two advantages:

1. It runs using `pull_request_target`, meaning that PRs created from
   forks will get previews too.
2. The action can be shared with other repos with a similar structure to
   get Playground previews as well, such as the [WordPress Community Themes](https://github.com/WordPress/community-themes) repo.
@vcanales vcanales self-assigned this Jul 31, 2024
Copy link
Member

@mikachan mikachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fab, thanks so much @vcanales! I think we should bring this in to test it out and allow previews to be created from forks.

@vcanales vcanales merged commit df6ea64 into trunk Aug 2, 2024
2 checks passed
@vcanales vcanales deleted the update-preview-theme-workflow branch August 2, 2024 04:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants