Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor PR preview workflow for improved approval process #1370

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

st0012
Copy link
Member

@st0012 st0012 commented May 14, 2025

Because GitHub Actions' manual dispatching doesn't allow pre-filling the PR number, it'd be tedious for maintainers to manually trigger the workflow.

This refactor introduces a new workflow that checks for PRs from the main repository or forks, and if it's a fork, it requires approval to deploy. This works by associating the workflow with an environment that requires approval to deploy.

The pr-review-check.yml workflow will then call the cloudflare-preview.yml workflow to build and deploy the preview.

Copy link

cloudflare-workers-and-pages bot commented May 14, 2025

Deploying rdoc with  Cloudflare Pages  Cloudflare Pages

Latest commit: d2cb4c7
Status: ✅  Deploy successful!
Preview URL: https://036ab080.rdoc-6cd.pages.dev
Branch Preview URL: https://improve-preview-building-wor.rdoc-6cd.pages.dev

View logs

@st0012 st0012 force-pushed the improve-preview-building-workflows branch 3 times, most recently from 1aecdfb to b1c02db Compare May 14, 2025 21:53
Because GitHub Actions' manual dispatching doesn't allow pre-filling the
PR number, it'd be tedious for maintainers to manually trigger the workflow.

This refactor introduces a new workflow that checks for PRs from the main
repository or forks, and if it's a fork, it requires approval to deploy.
This works by associating the workflow with an environment that requires
approval to deploy.

The pr-review-check.yml workflow will then call the cloudflare-preview.yml
workflow to build and deploy the preview.
@st0012 st0012 force-pushed the improve-preview-building-workflows branch from b1c02db to ba3a232 Compare May 14, 2025 21:56
@st0012 st0012 force-pushed the improve-preview-building-workflows branch from cad758f to d2cb4c7 Compare May 14, 2025 22:01
Copy link

🚀 Preview deployment available at: https://ae7985bf.rdoc-6cd.pages.dev (commit: d2cb4c7)

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.

1 participant