From 0014ee861ce23fa3f187e90dbb1715845b786895 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Mon, 2 Feb 2026 17:04:08 -0800 Subject: [PATCH] Migrate fast and simple actions to ubuntu-slim runner --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/pr-title.yml | 2 +- .github/workflows/release.yml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6983437..b10bdfe3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: format: - runs-on: ubuntu-latest + runs-on: ubuntu-slim # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' steps: @@ -37,7 +37,7 @@ jobs: run: pnpm run format:check lint: - runs-on: ubuntu-latest + runs-on: ubuntu-slim # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' steps: @@ -65,7 +65,7 @@ jobs: run: pnpm run lint build: - runs-on: ubuntu-latest + runs-on: ubuntu-slim # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' steps: @@ -93,7 +93,7 @@ jobs: run: pnpm run build test: - runs-on: ubuntu-latest + runs-on: ubuntu-slim needs: build # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only if: (github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch' @@ -130,7 +130,7 @@ jobs: retention-days: 7 ready-to-merge: - runs-on: ubuntu-latest + runs-on: ubuntu-slim needs: [format, lint, build, test] # Run from pull_request for non-release-please branches, or pull_request_target for release-please branches only if: always() && ((github.event_name == 'pull_request' && !startsWith(github.event.pull_request.head.ref, 'release-please--')) || (github.event_name == 'pull_request_target' && startsWith(github.event.pull_request.head.ref, 'release-please--')) || github.event_name == 'workflow_dispatch') diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 83568096..caa25bc6 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -6,7 +6,7 @@ on: jobs: pr-title-check: - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - uses: amannn/action-semantic-pull-request@v6 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1643209..a7cdd63d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ permissions: jobs: release: - runs-on: ubuntu-latest + runs-on: ubuntu-slim outputs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} @@ -24,7 +24,7 @@ jobs: publish: needs: release if: ${{ needs.release.outputs.release_created == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: read id-token: write # Required for OIDC