I am using a simple workflow which consists of two jobs -
- Build
- Deploy (requires Build)
workflows:
version: 2
# The build and deploy workflow
build_and_deploy:
jobs:
- build
# The deploy job will only run on the filtered branches and
# require the build job to be successful before it starts
- deploy:
requires:
- build
I am using a Github repo for the project,
When I commit on Github, workflow executes successfully.
but when I trigger the same via API, it triggers only build job and not deploy, I want workflow to be executed in same way as from commit on Github.
My API endpoint looks like:
https://circleci.com/api/v1.1/project/github/:username/:repo/tree/:branch?circle-token=xyz
Please help me with this.