From a126a17dfb1430487f6057267b0618e1147cfb2a Mon Sep 17 00:00:00 2001 From: moe-ad Date: Mon, 13 Oct 2025 11:44:30 +0200 Subject: [PATCH] ci: remove main/master sync --- .github/workflows/ci.yml | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50fe891d2be..d9a2158f0fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -206,39 +206,3 @@ jobs: DOCSTRING: false standalone_suffix: ${{ matrix.version == '241' && '.sp01' || '' }} secrets: inherit - - sync-main-with-master: - name: "Sync main with master" - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - runs-on: ubuntu-latest - steps: - - name: "Install Git and clone project" - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - token: ${{ secrets.MIGRATION_PAT }} - fetch-depth: 0 - - - name: "Verify that main is the default branch" - shell: bash - run: | - head_branch=$(git remote show origin | grep "HEAD branch:") - main_branch=${head_branch#*: } - - if [[ $main_branch != "main" ]]; then - echo "The default branch is not 'main'. It is set to '$main_branch'." - echo "Please set 'main' as the default branch in the repository settings." - exit 1 - fi - - - name: "Configure git username and email" - shell: bash - run: | - git config --global user.name "${{ secrets.PYANSYS_CI_BOT_USERNAME }}" - git config --global user.email "${{ secrets.PYANSYS_CI_BOT_EMAIL }}" - - - name: "Sync main to master" - shell: bash - run: | - git checkout master - git reset --hard main - git push \ No newline at end of file