From a5898df01c6d022129decdcdb0a72de42ce099ab Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Tue, 25 Nov 2025 09:34:44 -0800 Subject: [PATCH] Disable nightly SDK gen job --- .github/workflows/nightly-sdk-generation.yml | 123 ------------------- 1 file changed, 123 deletions(-) delete mode 100644 .github/workflows/nightly-sdk-generation.yml diff --git a/.github/workflows/nightly-sdk-generation.yml b/.github/workflows/nightly-sdk-generation.yml deleted file mode 100644 index 66076da7ee9c..000000000000 --- a/.github/workflows/nightly-sdk-generation.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: nightly-sdk-generation -on: - schedule: - - cron: 35 4 * * 1-5 - workflow_dispatch: {} -env: - PROVIDER: azure-native - PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget - TRAVIS_OS_NAME: linux - PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. - ARM_LOCATION: westus2 - PULUMI_API: https://api.pulumi-staging.io - PROVIDER_VERSION: 3.0.0-alpha.0+dev -jobs: - generate-sdk: - # Use a more powerful runner to fix pulumi/pulumi-azure-native#2767 - runs-on: pulumi-ubuntu-8core - name: generate-sdk - permissions: - contents: write # For PR. - id-token: write # For ESC secrets. - steps: - # We do a deep checkout so we're able to push later - - name: Checkout Repo - uses: actions/checkout@v4 - with: - submodules: true - fetch-depth: 0 - - - env: - ESC_ACTION_ENVIRONMENT: github-secrets/${{ github.repository_owner }}-${{ github.event.repository.name }} - ESC_ACTION_OIDC_AUTH: "true" - ESC_ACTION_OIDC_ORGANIZATION: pulumi - ESC_ACTION_OIDC_REQUESTED_TOKEN_TYPE: urn:pulumi:token-type:access_token:organization - id: esc-secrets - name: Fetch secrets from ESC - uses: pulumi/esc-action@9eb774255b1a4afb7855678ae8d4a77359da0d9b - - - name: Install Languages & Frameworks - uses: ./.github/actions/install - with: - skip_dotnet_and_java: "true" - - - uses: azure/login@v2 - with: - creds: ${{ steps.esc-secrets.outputs.AZURE_RBAC_SERVICE_PRINCIPAL }} - - - name: Cleanup SDK Folder - # Remove the per-language folders but preserve the checked-in go.mod - run: find sdk -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \; - - - name: Preparing Git Branch - run: | - git config --local user.email "bot@pulumi.com" - git config --local user.name "pulumi-bot" - git checkout -b generate-sdk/${{ github.run_id }}-${{ github.run_number }} - - - name: Commit Empty SDK - run: |- - git add . - git commit -m "Preparing the SDK folder for regeneration" - - - name: Update Submodules - run: make update_submodules - - - name: Build codegen binaries - run: make codegen - - - name: Build Schema + SDKs - run: make local_generate - - - name: Git submodule commit hash - id: vars - run: echo "commit-hash=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT" - working-directory: azure-rest-api-specs - - - name: Commit changes - run: | - git add sdk - git commit -m "Regenerating SDKs based on azure-rest-api-specs @ ${{ steps.vars.outputs.commit-hash }}" || echo "ignore commit failure, may be empty" - git add . - git commit -m "Regenerating based on azure-rest-api-specs @ ${{ steps.vars.outputs.commit-hash }}" - git push origin generate-sdk/${{ github.run_id }}-${{ github.run_number }} - - - name: Create PR - id: create-pr - uses: repo-sync/pull-request@v2.12.1 - with: - destination_branch: master - github_token: ${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }} - pr_body: "*Automated PR*" - pr_title: Automated SDK generation @ azure-rest-api-specs ${{ - steps.vars.outputs.commit-hash }} - source_branch: generate-sdk/${{ github.run_id }}-${{ github.run_number }} - - - name: Install Schema Tools - uses: jaxxstorm/action-install-gh-release@v1.11.0 - with: - repo: pulumi/schema-tools - - - name: Check Schema is Valid - id: schema-tools - shell: bash - run: | - { - echo 'summary<> "$GITHUB_OUTPUT" - - - name: Set AutoMerge - if: steps.create-pr.outputs.has_changed_files && contains(steps.schema-tools.outputs.summary, 'Looking good! No breaking changes found.') - run: gh pr merge ${{ steps.create-pr.outputs.pr_number }} --squash --auto --repo ${{ github.repository }} - env: - GH_TOKEN: ${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }} - - - if: failure() && github.event_name == 'push' - name: Notify Slack - uses: 8398a7/action-slack@v3 - with: - author_name: Failure during automated SDK generation - fields: repo,commit,author,action - status: ${{ job.status }}