From 84fffaa6fc8dd4011fb3474f20b2781630286607 Mon Sep 17 00:00:00 2001 From: ciat-777 Date: Sun, 15 Mar 2026 13:33:35 +0800 Subject: [PATCH] fix: upgrade github-script action to v8 in workflows --- .github/workflows/backfill-pr-labels.yml | 7 ++++--- .github/workflows/labeler.yml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backfill-pr-labels.yml b/.github/workflows/backfill-pr-labels.yml index 3bc4e52..d499772 100644 --- a/.github/workflows/backfill-pr-labels.yml +++ b/.github/workflows/backfill-pr-labels.yml @@ -28,13 +28,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Backfill PR labels - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | const owner = context.repo.owner; const repo = context.repo.repo; - const requestedState = core.getInput('state'); - const limit = Number.parseInt(core.getInput('limit'), 10); + const inputs = context.payload.inputs || {}; + const requestedState = inputs.state || 'all'; + const limit = Number.parseInt(inputs.limit || '100', 10); const sizeLabels = ['size: XS', 'size: S', 'size: M', 'size: L', 'size: XL', 'size: XXL']; const areaRules = [ { label: 'area: db', include: ['src/server/db/', 'drizzle/'] }, diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 020f8b8..d93426a 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -20,7 +20,7 @@ jobs: sync-labels: false - name: Apply size label - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | const owner = context.repo.owner;