From 5ae201c304ee5aa3f109a2e1067f020490f032e0 Mon Sep 17 00:00:00 2001 From: Dax Date: Sun, 25 Oct 2026 18:29:20 -0400 Subject: [PATCH] Remove the models-snapshot workflow (#59076) --- .github/workflows/models-snapshot.yml | 62 --------------------------- 1 file changed, 62 deletions(-) delete mode 100644 .github/workflows/models-snapshot.yml diff --git a/.github/workflows/models-snapshot.yml b/.github/workflows/models-snapshot.yml deleted file mode 100644 index a354bd61482..00000000000 --- a/.github/workflows/models-snapshot.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: models-snapshot - -permissions: - contents: write - -on: - workflow_dispatch: - schedule: - - cron: "0 0,12 * * *" - -concurrency: - group: ${{ github.workflow }} - cancel-in-progress: false - -jobs: - refresh: - if: github.repository == 'anomalyco/opencode' - runs-on: blacksmith-4vcpu-ubuntu-2404 - - steps: - - name: Checkout repository - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - with: - persist-credentials: false - ref: dev - - # The refresh script only needs `fetch`; skip the monorepo install. - - name: Setup Bun - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 - with: - bun-version-file: package.json - - - name: Setup git committer - uses: ./.github/actions/setup-git-committer - with: - opencode-app-id: ${{ vars.OPENCODE_APP_ID }} - opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }} - - - name: Refresh snapshot - run: bun packages/core/script/update-models-snapshot.ts - - - name: Commit changes - run: | - set -euo pipefail - - FILE="packages/core/src/models-dev/snapshot.txt" - - if [ -z "$(git status --short -- "$FILE")" ]; then - echo "No changes to commit" - echo "### models.dev snapshot" >> "$GITHUB_STEP_SUMMARY" - echo "Status: no changes" >> "$GITHUB_STEP_SUMMARY" - exit 0 - fi - - git add "$FILE" - git commit -m "chore(core): refresh bundled models.dev snapshot" - - git pull --rebase --autostash origin dev - git push origin HEAD:dev --no-verify - - echo "### models.dev snapshot" >> "$GITHUB_STEP_SUMMARY" - echo "Status: committed $(git rev-parse --short HEAD)" >> "$GITHUB_STEP_SUMMARY"