Skip to content

Commit 6e568a4

Browse files
authored
ci: remove main/master sync (#2675)
1 parent 4d30713 commit 6e568a4

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)