Hello.
I have workflow that has a job(test-job) in it that only runs when a commit is pushed to branch test. Now I also want to run it when a commit is pushed to master but I want the job to execute against code on the branch test and not master.
Example config:
workflows:
version: 2
my-workflow:
jobs:
- test-job:
filters:
branches:
only:
- test
Any insight into how I could solve this would be greatly appreciated. I thought about using another job that would be triggered by master push that would kick off the test-job on the test branch via the circleci api but I would prefer to avoid this if possible. I am hoping there is an easier way that I am just missing.
Thank you for your time.