Fix wait-on-check-action ref mismatch#14
Conversation
Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
There was a problem hiding this comment.
Pull Request Overview
This PR attempts to fix the wait-on-check-action configuration in the deploy workflow by changing from branch references to commit SHAs and updating check names. However, the frontend check name change introduces a critical bug that will cause deployment to wait for the wrong workflow.
Key Changes
- Changed
ref: ${{ github.ref }}toref: ${{ github.sha }}for both backend and frontend wait steps ✅ - Changed frontend check name from 'Build and Push Frontend Container' to 'Build and Lint Frontend' ❌ (incorrect)
| ref: ${{ github.ref }} | ||
| check-name: 'Build and Push Frontend Container' | ||
| ref: ${{ github.sha }} | ||
| check-name: 'Build and Lint Frontend' |
There was a problem hiding this comment.
The check name 'Build and Lint Frontend' is incorrect. This workflow should wait for the image build job from build-frontend-image.yml, not the CI/lint job from frontend.yml.
The correct check name should remain 'Build and Push Frontend Container' which matches the job name in build-frontend-image.yml (line 63). The 'Build and Lint Frontend' job is from a different workflow (frontend.yml) that runs CI checks but doesn't build the container image needed for deployment.
Suggested fix:
check-name: 'Build and Push Frontend Container'| check-name: 'Build and Lint Frontend' | |
| check-name: 'Build and Push Frontend Container' |
There was a problem hiding this comment.
Fixed in 797689b. Reverted the check-name to 'Build and Push Frontend Container' to correctly wait for the container image build workflow from build-frontend-image.yml.
|
@copilot apply changes based on the comments in this thread |
Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
The deploy workflow fails with "The requested check was never run against this ref" because
wait-on-check-actionuses branch refs instead of commit SHAs.Changes
github.shainstead ofgithub.refgithub.shainstead ofgithub.refCheck runs are tied to commit SHAs, not branch refs. Both wait steps now correctly reference the commit SHA to find the corresponding check runs from
build-backend-image.ymlandbuild-frontend-image.ymlworkflows.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.