Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants