File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,12 +101,17 @@ jobs:
101101 python3 -m pip install pyproject-deplister
102102 pyproject-deplister --extra dev --path pyproject.toml | grep bump-my-version | sed 's/ //g' | xargs -I{} python3 -m pip install "{}"
103103
104- - name : Merge branch into temp branch
104+ - name : Test merging PR into main, and main into develop
105105 run : |
106- git checkout -B temp_${{github.ref_name}}_${{github.run_id}} origin/main
106+ git fetch origin main
107+ git checkout -B temp_main_${{github.ref_name}}_${{github.run_id}} origin/main
107108 git branch -f ${{ github.ref_name }} origin/${{ github.ref_name }}
108109 git merge ${{ github.ref_name }} --no-ff --no-edit
109110
111+ git fetch origin develop
112+ git checkout -B temp_develop_${{github.ref_name}}_${{github.run_id}} origin/develop
113+ git merge temp_main_${{github.ref_name}}_${{github.run_id}}
114+
110115 - name : Bump version
111116 id : temp_bump
112117 shell : bash
@@ -121,11 +126,10 @@ jobs:
121126 git reset --hard HEAD^
122127 exit 1
123128
124- - name : Fail if bumping failes
129+ - name : Succeed if version is bumped
125130 if : steps.temp_bump.outputs.bumped == 'true'
126131 run : |
127132 echo "Version would be bumped to $(bump-my-version show current_version)!"
128-
129133 git reset --hard HEAD^
130134
131135 - name : Get current main commit hash
You can’t perform that action at this time.
0 commit comments