If I understand the request well, the second workflow needs to be run on main
branch and not A
. One way to achieve is using git checkout
in Second workflow like below:
steps:
- name: Checkout branch
run: |
git checkout main