From 28a0322d5d1e1591b09cfc2747a5f95b53a05daf Mon Sep 17 00:00:00 2001 From: aviruthen <91846056+aviruthen@users.noreply.github.com> Date: Tue, 6 Oct 2026 14:05:15 -0700 Subject: [PATCH] ci: Remove legacy workflows --- .github/workflows/auto-approve.yml | 15 ----------- .github/workflows/auto-merge.yml | 38 ---------------------------- .github/workflows/botocore-sync.yml | 26 ------------------- .github/workflows/create-release.yml | 27 -------------------- 4 files changed, 106 deletions(-) delete mode 100644 .github/workflows/auto-approve.yml delete mode 100644 .github/workflows/auto-merge.yml delete mode 100644 .github/workflows/botocore-sync.yml delete mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml deleted file mode 100644 index 16ae7dd0..00000000 --- a/.github/workflows/auto-approve.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Auto Approve -on: - pull_request_target: - types: [ labeled, unlabeled, opened, synchronize, reopened, ready_for_review, review_requested ] - -jobs: - auto-approve: - if: contains(github.event.pull_request.labels.*.name, 'auto-approve') && github.event.pull_request.user.login == 'sagemaker-bot' - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - uses: hmarr/auto-approve-action@v4.0.0 - with: - github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml deleted file mode 100644 index 3520e6be..00000000 --- a/.github/workflows/auto-merge.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Merge Botocore Sync PR - -on: - pull_request: - branches: - - "main*" - paths: - - "sample/**/*.json" - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref }} - cancel-in-progress: true - -permissions: - id-token: write # This is required for requesting the JWT - contents: read - -jobs: - merge-botocore-sync-pr: - runs-on: ubuntu-latest - if: github.event.pull_request.user.login == 'sagemaker-bot' && startsWith(github.event.pull_request.head.ref, 'botocore-sync') && startsWith(github.event.pull_request.title, 'Daily Sync with Botocore') - steps: - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CODEBUILD_ROLE_ARN }} - role-duration-seconds: 10800 - aws-region: us-west-2 - - name: Auto Merge Botocore Sync PRs - uses: aws-actions/aws-codebuild-run-build@v1 - with: - project-name: sagemaker-core-merge-botocore-pr - env-vars-for-codebuild: | - PR_NUMBER, - COMMIT_SHA - env: - PR_NUMBER: ${{ github.event.pull_request.number }} - COMMIT_SHA: ${{ github.event.pull_request.head.sha }} diff --git a/.github/workflows/botocore-sync.yml b/.github/workflows/botocore-sync.yml deleted file mode 100644 index 99eea5ce..00000000 --- a/.github/workflows/botocore-sync.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Daily Sync with Botocore - -on: - schedule: - # Every Monday to Friday at 10:00 UTC (3:00 PDT) - - cron: 00 10 * * 1-5 - -permissions: - id-token: write # This is required for requesting the JWT - -jobs: - sync-with-botocore: - runs-on: ubuntu-latest - steps: - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CODEBUILD_ROLE_ARN }} - role-duration-seconds: 10800 - aws-region: us-west-2 - - - name: Run CodeBuild - uses: aws-actions/aws-codebuild-run-build@v1 - with: - project-name: sagemaker-core-botocore-sync - diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index 13383705..00000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Create Release - -on: - pull_request: - types: [closed] - branches: - - main - -permissions: - id-token: write # This is required for requesting the JWT - -jobs: - create-release: - if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Daily Sync with Botocore') && github.event.pull_request.user.login == 'sagemaker-bot' - runs-on: ubuntu-latest - steps: - - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: ${{ secrets.CODEBUILD_ROLE_ARN }} - role-duration-seconds: 10800 - aws-region: us-west-2 - - - name: Run CodeBuild - uses: aws-actions/aws-codebuild-run-build@v1 - with: - project-name: sagemaker-core-auto-release