From 8d619ba312b3cc8a6d2d7d7f2edd910ce821c619 Mon Sep 17 00:00:00 2001 From: Aryamanz29 Date: Mon, 9 Mar 2026 14:41:03 +0530 Subject: [PATCH] BLDX-707 | Remove format-sync-models workflow Pre-commit formatting is now handled in the models repo sync workflow (atlanhq/models BLDX-708) before the PR is created. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/format-sync-models.yaml | 60 ----------------------- 1 file changed, 60 deletions(-) delete mode 100644 .github/workflows/format-sync-models.yaml diff --git a/.github/workflows/format-sync-models.yaml b/.github/workflows/format-sync-models.yaml deleted file mode 100644 index da6aed840..000000000 --- a/.github/workflows/format-sync-models.yaml +++ /dev/null @@ -1,60 +0,0 @@ -name: Format Sync Models PR - -on: - pull_request: - branches: - - main - paths: - - "pyatlan_v9/model/assets/**" - workflow_dispatch: - inputs: - branch: - description: "Branch name to format (e.g. sync-models-20260308-211204)" - required: true - type: string - -permissions: - contents: write - -jobs: - format: - # Only run on automated sync branches (auto for PRs, manual via input) - if: >- - github.event_name == 'workflow_dispatch' || - startsWith(github.head_ref, 'sync-models-') - runs-on: ubuntu-latest - - steps: - - name: Checkout branch - uses: actions/checkout@v5 - with: - ref: ${{ github.event.inputs.branch || github.head_ref }} - token: ${{ secrets.ORG_PAT_GITHUB }} - fetch-depth: 1 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Run pre-commit - uses: pre-commit/action@v3.0.1 - with: - extra_args: --all-files - continue-on-error: true - - - name: Commit and push formatting changes - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - - if [ -n "$(git status --porcelain)" ]; then - git add -A - git commit -m "Apply pre-commit formatting to synced models - - Co-Authored-By: github-actions[bot] " - git push - echo "Formatting changes committed and pushed." - else - echo "No formatting changes needed." - fi