Skip to content

Conversation

@rob1997
Copy link
Collaborator

@rob1997 rob1997 commented Nov 27, 2024

  • Fixes merging main to dev automatically
  • What it does is basically whenever we push to main it tries and merge it to dev (sync both branches)
  • we're using Setup.sln
    - Note :- It doesn't resolve conflicts and we're likely to run into them since we're updating dependencies via CI on both branches so at the very least library folders with dlls will have conflict Now we got an exclusion path list
  • Improved command line parsing for adding new option in Setup.sln
  • Updated label checks in PR to dev to work on simultaneous labeling
  • as usual CI won't work till this is on main but here's a successful test run

@rob1997 rob1997 self-assigned this Nov 27, 2024
@rob1997 rob1997 marked this pull request as ready for review November 27, 2024 10:02
@rob1997 rob1997 marked this pull request as ready for review November 28, 2024 17:42
@rob1997 rob1997 merged commit a1e4dd1 into main Dec 3, 2024
9 checks passed
@rob1997 rob1997 deleted the rob/sync-branches-ci-fix branch December 3, 2024 09:50
rob1997 added a commit that referenced this pull request Jan 16, 2025
* changed checkout ref to target and added base input

* test run

* workflow file ref changed

* change the base branch since main and dev are upto date

* added some logs for debugging

* more logs

* check with correct inputs

* logs and added fetch just in case

* cutting my losses and trying a third party action

* skip ci added

* skip CI inputs added

* remove required from skip_ci input

* apparently $ runs commands in bash

* maybe pipe it

* cutting my loses again

* trying some stuff

* trying something from stackoverflow

* small edits

* smaller edits

* bash is so weird

* message formatting

* input options implemented

* typo fix

* more typo fixes :facepalm

* reverted testing refs

* typo fix

* checking regular git commands if they work

* logs and fetch

* log latest commit

* changed checkout branch at step removed branch log

* log last commit command replaced

* log status

* checkout at base branch

* added git branch to find base branch

* trying more combinations

* updated dev PR checks to trigger with multiple labels

* setup now uses a proper command line parser

* updated workflows with new command line parameters

* updated local scripts with new arguments

* text formatting

* updated release argument

* -r is also already in use, --deploy

* typo fix

* arguments fix for sync verb

* fixed skip ci option

* changed setup ref

* typo fix

* fixing some parsing issues

* added a . at the end of path because git isn't finding path

* logging and trying something I found on git

* more logs and messing with directory

* fixed path

* allow unrelated histories

* empty trigger

* more logging

* typo fixed

* trial without exclusion logic

* reverted changes

* added git log on checkout

* reverted log

* added some merge options

* merging the other way

* reverted reverse merging

* check if history is related

* checking target's last commits

* more logs

* one line logging

* GH actions is running one commit branches :faceplam

* what happens if I force pull do I get all the commits?

* TIL GitHub only fetches one commit from head by default

* revert back testing changes

* added back config input for sync dependencies

* ci shouldn't be skipped on dev (for extra commits)
sergeypanin1994 pushed a commit to sergeypanin1994/web3.unity that referenced this pull request Mar 16, 2025
* changed checkout ref to target and added base input

* test run

* workflow file ref changed

* change the base branch since main and dev are upto date

* added some logs for debugging

* more logs

* check with correct inputs

* logs and added fetch just in case

* cutting my losses and trying a third party action

* skip ci added

* skip CI inputs added

* remove required from skip_ci input

* apparently $ runs commands in bash

* maybe pipe it

* cutting my loses again

* trying some stuff

* trying something from stackoverflow

* small edits

* smaller edits

* bash is so weird

* message formatting

* input options implemented

* typo fix

* more typo fixes :facepalm

* reverted testing refs

* typo fix

* checking regular git commands if they work

* logs and fetch

* log latest commit

* changed checkout branch at step removed branch log

* log last commit command replaced

* log status

* checkout at base branch

* added git branch to find base branch

* trying more combinations

* updated dev PR checks to trigger with multiple labels

* setup now uses a proper command line parser

* updated workflows with new command line parameters

* updated local scripts with new arguments

* text formatting

* updated release argument

* -r is also already in use, --deploy

* typo fix

* arguments fix for sync verb

* fixed skip ci option

* changed setup ref

* typo fix

* fixing some parsing issues

* added a . at the end of path because git isn't finding path

* logging and trying something I found on git

* more logs and messing with directory

* fixed path

* allow unrelated histories

* empty trigger

* more logging

* typo fixed

* trial without exclusion logic

* reverted changes

* added git log on checkout

* reverted log

* added some merge options

* merging the other way

* reverted reverse merging

* check if history is related

* checking target's last commits

* more logs

* one line logging

* GH actions is running one commit branches :faceplam

* what happens if I force pull do I get all the commits?

* TIL GitHub only fetches one commit from head by default

* revert back testing changes

* added back config input for sync dependencies

* ci shouldn't be skipped on dev (for extra commits)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants