From 3ec6219103edfa66cc6c98045198b489211cca50 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Thu, 30 Jan 2025 16:06:16 -0500 Subject: [PATCH] [ci] Remove references to sdk-insertions (#22079) Removes all references to xamarin/sdk-insertions as an initial step towards deprecation of the SDK insertions repo. The vs-release-vars.yml template is no longer needed by the latest insertion workflow, and we should no longer mirror commits using the sdk-insertion-bump workflow. --- .github/workflows/sdk-insertion-bump.yml | 30 ------------------- tools/devops/automation/build-cronjob.yml | 6 ---- tools/devops/automation/build-lego.yml | 6 ---- tools/devops/automation/build-pipeline.yml | 8 ----- .../devops/automation/build-pull-request.yml | 8 ----- .../automation/publish-pr-html-results.yml | 6 ---- .../run-post-ci-build-vs-insertion.yml | 1 - .../templates/pipelines/build-pipeline.yml | 6 ---- 8 files changed, 71 deletions(-) delete mode 100644 .github/workflows/sdk-insertion-bump.yml diff --git a/.github/workflows/sdk-insertion-bump.yml b/.github/workflows/sdk-insertion-bump.yml deleted file mode 100644 index 3b1e7a4d50f6..000000000000 --- a/.github/workflows/sdk-insertion-bump.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Notify release branch change - -on: push - -jobs: - pingRemote: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Parse commit - shell: pwsh - id: commit_title - run: | - Write-Host "Commit message is $Env:COMMIT_MESSAGE" - $title = ($Env:COMMIT_MESSAGE -split '\n')[0] | ConvertTo-Json - "COMMIT_TITLE=$title" >> $env:GITHUB_OUTPUT - env: - COMMIT_MESSAGE: "${{ github.event.head_commit.message }}" - - - name: 'Update remote repository' - uses: peter-evans/repository-dispatch@v3 - with: - token: ${{ secrets.SERVICEACCOUNT_PAT }} - event-type: 'sdk_insertion' - repository: 'xamarin/sdk-insertions' - client-payload: '{"repository": "xamarin/xamarin-macios", "branch": "${{ github.ref_name }}", "commit": "${{ github.sha }}", "commit_message": ${{ steps.commit_title.outputs.COMMIT_TITLE }} }' - - diff --git a/tools/devops/automation/build-cronjob.yml b/tools/devops/automation/build-cronjob.yml index a632e6b367b7..8a6b275a06ce 100644 --- a/tools/devops/automation/build-cronjob.yml +++ b/tools/devops/automation/build-cronjob.yml @@ -32,12 +32,6 @@ resources: ref: refs/heads/main endpoint: xamarin - - repository: sdk-insertions - type: github - name: xamarin/sdk-insertions - ref: refs/heads/main - endpoint: xamarin - - repository: maccore type: github name: xamarin/maccore diff --git a/tools/devops/automation/build-lego.yml b/tools/devops/automation/build-lego.yml index 56cc2451538b..cdd253a86a6c 100644 --- a/tools/devops/automation/build-lego.yml +++ b/tools/devops/automation/build-lego.yml @@ -26,12 +26,6 @@ resources: ref: refs/heads/main endpoint: xamarin - - repository: sdk-insertions - type: github - name: xamarin/sdk-insertions - ref: refs/heads/main - endpoint: xamarin - - repository: maccore type: github name: xamarin/maccore diff --git a/tools/devops/automation/build-pipeline.yml b/tools/devops/automation/build-pipeline.yml index ee5ba61c090e..c17d996c18e6 100644 --- a/tools/devops/automation/build-pipeline.yml +++ b/tools/devops/automation/build-pipeline.yml @@ -129,12 +129,6 @@ resources: ref: refs/heads/main endpoint: xamarin - - repository: sdk-insertions - type: github - name: xamarin/sdk-insertions - ref: refs/heads/main - endpoint: xamarin - - repository: maccore type: github name: xamarin/maccore @@ -153,7 +147,6 @@ resources: variables: - ${{ if contains(variables['Build.DefinitionName'], 'private') }}: - template: templates/vsts-variables.yml - - template: templates/common/vs-release-vars.yml@sdk-insertions - template: templates/variables/common.yml - template: templates/variables/api-scan.yml - template: templates/variables/signing.yml @@ -218,7 +211,6 @@ extends: - repository: maccore exclude: - repository: yaml-templates - - repository: sdk-insertions - repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis stages: - template: templates/main-stage.yml diff --git a/tools/devops/automation/build-pull-request.yml b/tools/devops/automation/build-pull-request.yml index c1ec04a9f8ac..32d67a95e133 100644 --- a/tools/devops/automation/build-pull-request.yml +++ b/tools/devops/automation/build-pull-request.yml @@ -120,12 +120,6 @@ resources: ref: refs/heads/main endpoint: xamarin - - repository: sdk-insertions - type: github - name: xamarin/sdk-insertions - ref: refs/heads/main - endpoint: xamarin - - repository: maccore type: github name: xamarin/maccore @@ -144,7 +138,6 @@ resources: variables: - template: templates/variables/common.yml - template: templates/variables/api-scan.yml -- template: templates/common/vs-release-vars.yml@sdk-insertions - name: Packaging.EnableSBOMSigning value: false @@ -206,7 +199,6 @@ extends: - repository: maccore exclude: - repository: yaml-templates - - repository: sdk-insertions - repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis stages: - template: templates/main-stage.yml diff --git a/tools/devops/automation/publish-pr-html-results.yml b/tools/devops/automation/publish-pr-html-results.yml index dd237a74855b..0822d729458a 100644 --- a/tools/devops/automation/publish-pr-html-results.yml +++ b/tools/devops/automation/publish-pr-html-results.yml @@ -17,12 +17,6 @@ resources: ref: refs/heads/main endpoint: xamarin - - repository: sdk-insertions - type: github - name: xamarin/sdk-insertions - ref: refs/heads/main - endpoint: xamarin - - repository: maccore type: github name: xamarin/maccore diff --git a/tools/devops/automation/run-post-ci-build-vs-insertion.yml b/tools/devops/automation/run-post-ci-build-vs-insertion.yml index 08afda9d5b46..b2ba7336592e 100644 --- a/tools/devops/automation/run-post-ci-build-vs-insertion.yml +++ b/tools/devops/automation/run-post-ci-build-vs-insertion.yml @@ -75,7 +75,6 @@ extends: - repository: maccore exclude: - repository: yaml-templates - - repository: sdk-insertions - repository: macios-adr # macios-adr has it's own build pipeline and should not be included in the source analysis stages: - template: templates/release/vs-insertion-prep.yml diff --git a/tools/devops/automation/templates/pipelines/build-pipeline.yml b/tools/devops/automation/templates/pipelines/build-pipeline.yml index 3133a1b5ae2a..9ac13c79d5de 100644 --- a/tools/devops/automation/templates/pipelines/build-pipeline.yml +++ b/tools/devops/automation/templates/pipelines/build-pipeline.yml @@ -143,12 +143,6 @@ resources: ref: refs/heads/main endpoint: xamarin - - repository: sdk-insertions - type: github - name: xamarin/sdk-insertions - ref: refs/heads/main - endpoint: xamarin - - repository: maccore type: github name: xamarin/maccore