Unable to push modifications made in the main branch to another branch #301
-
I have the following scenario: My repository contains two branches, In my workflow, I initially check out the
Here's the complete workflow:
Could you please help me modify the usage of action |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there 👋 The action does a There are a couple of solutions:
Let me know if this work your you need further help. |
Beta Was this translation helpful? Give feedback.
Hi there 👋
The action does a
git-checkout
internally to try to align local and remote branches.If your local branch name differs from the "target"-branch name, you run into this issue, where files would need to be stashed.
(I know, it's not intuitive. It's also the source of a lot of frustration. I will probably remove this feature in the next major version).
There are a couple of solutions:
skip_checkout: true
to your workflow, to skip thegit-checkout
step entirely.bench_data
-branch inside themain
-branch checkout, you could check out the repo into 2 separate folders. (egmain
andbench_data
). You could then run your code that updatesdata.json
and th…