I have a workflow setup that works very nicely for our master branch.
We have a trunk based deployment, so we want to build all PRs and master, but when it is master we deploy the code when the tests pass.
workflows: version: 2 build_and_test: jobs: - build - deploy-to-staging: requires: - build filters: branches: only: master - approve-deploy-production: type: approval requires: - deploy-to-staging - deploy-to-prod: requires: - approve-deploy-production
So the deploy to staging step is only being executed on master. The problem comes in with the PR branches, we are stopping the pipleline after the build step, The status on GitHub stays ‘Waiting for status to be reported’ so the pipeline never finishes. How should we fix this?