File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -206,39 +206,3 @@ jobs:
206206 DOCSTRING : false
207207 standalone_suffix : ${{ matrix.version == '241' && '.sp01' || '' }}
208208 secrets : inherit
209-
210- sync-main-with-master :
211- name : " Sync main with master"
212- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
213- runs-on : ubuntu-latest
214- steps :
215- - name : " Install Git and clone project"
216- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
217- with :
218- token : ${{ secrets.MIGRATION_PAT }}
219- fetch-depth : 0
220-
221- - name : " Verify that main is the default branch"
222- shell : bash
223- run : |
224- head_branch=$(git remote show origin | grep "HEAD branch:")
225- main_branch=${head_branch#*: }
226-
227- if [[ $main_branch != "main" ]]; then
228- echo "The default branch is not 'main'. It is set to '$main_branch'."
229- echo "Please set 'main' as the default branch in the repository settings."
230- exit 1
231- fi
232-
233- - name : " Configure git username and email"
234- shell : bash
235- run : |
236- git config --global user.name "${{ secrets.PYANSYS_CI_BOT_USERNAME }}"
237- git config --global user.email "${{ secrets.PYANSYS_CI_BOT_EMAIL }}"
238-
239- - name : " Sync main to master"
240- shell : bash
241- run : |
242- git checkout master
243- git reset --hard main
244- git push
You can’t perform that action at this time.
0 commit comments