Skip to content

Add pull_request trigger to deploy workflow#117

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/start-job-in-repo
Draft

Add pull_request trigger to deploy workflow#117
Copilot wants to merge 2 commits intomainfrom
copilot/start-job-in-repo

Conversation

Copy link
Contributor

Copilot AI commented Mar 1, 2026

The deploy workflow only triggers on push to main and workflow_dispatch, so the CI job never starts for PRs. Any required status check stays permanently pending, blocking all merges.

  • Add pull_request trigger targeting main
  • Gate deploy-specific steps (configure-pages, upload-pages-artifact, deploy-pages) behind if: github.event_name != 'pull_request' so PRs get a passing check without triggering actual deployment
Original prompt

Well! When merges never occur I wonder why! Then I come back to this repo oh yeah! Because this job was never starter!


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

The deploy workflow only triggered on push to main and workflow_dispatch,
so the CI job was never started for pull requests. This prevented PRs
from being merged when required status checks were configured.

- Add pull_request trigger targeting the main branch
- Add conditional guards to skip actual deployment on PR events
- On PRs, the job runs (creating the status check) but skips deploy steps

Co-authored-by: blackboxprogramming <118287761+blackboxprogramming@users.noreply.github.com>
Copilot AI changed the title [WIP] Start job in repository for processing Add pull_request trigger to deploy workflow Mar 1, 2026
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