fix: upgrade github-script action to v8 in workflows

This commit is contained in:
ciat-777
2026-03-15 13:33:35 +08:00
parent 7f20fd920d
commit 84fffaa6fc
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -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/'] },
+1 -1
View File
@@ -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;