fix(workflow): remove duplicate core require in github-script steps

This commit is contained in:
DIYgod 2025-08-30 17:29:01 +08:00
parent a514eb4d80
commit 79adda7ca6
No known key found for this signature in database
1 changed files with 0 additions and 2 deletions

View File

@ -20,7 +20,6 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const core = require('@actions/core');
const issue = context.payload.issue || {};
const title = issue.title || '';
const body = issue.body || '';
@ -51,7 +50,6 @@ jobs:
AI_RESPONSE: ${{ steps.inference.outputs.response }}
with:
script: |
const core = require('@actions/core');
let data;
try {
data = JSON.parse(process.env.AI_RESPONSE || '{}');