Skip to content

Unable to push modifications made in the main branch to another branch #301

Discussion options

You must be logged in to vote

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:

  1. You could add skip_checkout: true to your workflow, to skip the git-checkout step entirely.
  2. Instead of nesting bench_data-branch inside the main-branch checkout, you could check out the repo into 2 separate folders. (eg main and bench_data). You could then run your code that updates data.json and th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stefanzweifel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants