From 93c680e03e260e8761ac639cbea1826d3b2527d2 Mon Sep 17 00:00:00 2001 From: Suneha Bose Date: Thu, 22 Oct 2026 00:30:11 -0700 Subject: [PATCH] ci: remove obsolete Poll Starter Workflows job --- .github/workflows/poll-starter.yml | 91 ------------------------------ 1 file changed, 91 deletions(-) delete mode 100644 .github/workflows/poll-starter.yml diff --git a/.github/workflows/poll-starter.yml b/.github/workflows/poll-starter.yml deleted file mode 100644 index a665c6a5..00000000 --- a/.github/workflows/poll-starter.yml +++ /dev/null @@ -1,91 +0,0 @@ -name: Poll Starter Workflows - -on: - schedule: - - cron: "0 */3 * * *" - workflow_dispatch: - -env: - STARTER_WORKFLOW_PATH: "./starterWorkflows/" - STARTER_WORKFLOW_REPO_BRANCH: "main" - -jobs: - poll: - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - deployments: read - pull-requests: write - packages: none - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Download run information - uses: dawidd6/action-download-artifact@eab87c9830c39eff17e5a6eadb20bfb4bc880477 # v27 - continue-on-error: true - id: download - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - workflow: poll-starter.yml - workflow_conclusion: success - name: seen - path: /tmp - - - name: Create new run information - if: steps.download.outcome != 'success' - run: | - echo "Creating new run information record" - declare -A seenWorkflows - touch /tmp/seenWorkflows - declare -p seenWorkflows > /tmp/seenWorkflows - - - name: Download starter workflows - id: update-workflows - run: | - # get deployment workflows - echo "Calling GitHub API for starter workflows" - curl \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/actions/starter-workflows/contents/deployments?ref=$STARTER_WORKFLOW_REPO_BRANCH \ - | jq -c '.[]' | while read -r workflow; - do - # extract fields - name=$(echo $workflow | jq '.name' -r) - downloadUrl=$(echo $workflow | jq '.download_url' -r) - sha=$(echo $workflow | jq '.sha' -r) - - # get previous seen workflows (bash runs while loops in new shell) - source /tmp/seenWorkflows - - # download workflow if it's an AKS workflow and not seen before - echo "Checking workflow $name" - if [[ ( $name == azure-kubernetes-service* ) && ( ${seenWorkflows["$name"]} != "$sha" ) ]] ; - then - echo "Downloading starter workflow $name" - mkdir -p $STARTER_WORKFLOW_PATH && touch $STARTER_WORKFLOW_PATH$name - wget -O $STARTER_WORKFLOW_PATH$name $downloadUrl - - echo "Writting to seen workflows" - seenWorkflows["$name"]="$sha" - declare -p seenWorkflows > /tmp/seenWorkflows - - echo "setting changes step output" - echo "::set-output name=changes::true" - fi - done - - - name: Upload run information - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 - with: - name: seen - path: /tmp/seenWorkflows - - - name: Create Pull Request - if: ${{ steps.update-workflows.outputs.changes == 'true' }} - uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8 - with: - commit-message: update starter workflows - title: Automated Update Starter Workflows - body: This is an auto-generated PR. The starter workflow repo has changes not in this repository. Closing this PR stops all future alerts for these particular file changes. - branch: starter-workflow-updates