# Trigger jobs after merging code to any branch

**URL:** <https://discuss.circleci.com/t/trigger-jobs-after-merging-code-to-any-branch/42384>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [December 24, 2021, 4:32pm UTC](https://discuss.circleci.com/t/trigger-jobs-after-merging-code-to-any-branch/42384 "2021-12-24T16:32:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![duyl97](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/duyl97/32/29005_2.png) [@duyl97](https://discuss.circleci.com/u/duyl97)\
**Post date:** [December 24, 2021, 4:32pm UTC](https://discuss.circleci.com/t/trigger-jobs-after-merging-code-to-any-branch/42384/1 "2021-12-24T16:32:19Z")

</div>

Hi All,

I just wonder if there is any way for circleCI to execute jobs after running merge code.  
For instance, starting building after merging code from another branch to main and vice versa.

Thanks,

---

<div class="post-metadata">

**Author:** ![KyleTryon](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kyletryon/32/9977_2.png) [@KyleTryon](https://discuss.circleci.com/u/KyleTryon)\
**Post date:** [December 30, 2021, 4:00pm UTC](https://discuss.circleci.com/t/trigger-jobs-after-merging-code-to-any-branch/42384/2 "2021-12-30T16:00:50Z")

</div>

Hello @duyl97

By default, CircleCI runs on any new code push. Because the code that is merged has already been tested when it was pushed, CircleCI will not attempt to run it again (as it has the same SHA).

However, CircleCI as a platform has APIs and tools to help customize the experience (with more always coming).

Are you a GitHub user? If so, you may find this helpful: [Trigger your CircleCI pipelines from a GitHub Actions workflow | CircleCI](https://circleci.com/blog/trigger-circleci-pipeline-github-action/)  
This GitHub action triggers your pipelines on CircleCI via _any_ event on GitHub, not just pushes.

---

<div class="post-metadata">

**Author:** ![duyl97](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/duyl97/32/29005_2.png) [@duyl97](https://discuss.circleci.com/u/duyl97)\
**Post date:** [January 4, 2022, 10:23am UTC](https://discuss.circleci.com/t/trigger-jobs-after-merging-code-to-any-branch/42384/3 "2022-01-04T10:23:11Z")

</div>

Many thanks.  
I tried with Git Actions and it worked well.
