Unable to push modifications made in the main branch to another branch #301
Unanswered
DawidNiezgodka
asked this question in
Help
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following scenario: My repository contains two branches,
main
andbench_data
. Themain
branch houses the logic of a JavaScript-based GitHub Action, while thebench_data
branch serves as the repository for the current version of thedata.json
file.In my workflow, I initially check out the
main
branch and then proceed to check out thebench_data
branch. Thebench_data
branch is checked out into a distinct folder. Let's assume that within the primary logic of my action, there exists a function that readsdata.json
from the folder wherebench_data
was checked out, applies certain modifications to it, and subsequently saves the updated version of the file (i.e., the content from thefolder_where_bench_data_is_stored/data.json
along with some new changes) asdata.json
in the root directory. My objective is to push the newly generateddata.json
to thebench_data
branch. Regrettably, I encounter the following error:Here's the complete workflow:
Could you please help me modify the usage of action
stefanzweifel/git-auto-commit-action@v4
so that I can place a new version ofdata.json
in branchbench_data
?Alternatively, what steps need to be taken apart from using the action itself to achieve this goal?
Beta Was this translation helpful? Give feedback.
All reactions