mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
ci: pass workflow_run id to github-script via env (#1227)
This commit is contained in:
parent
f994180022
commit
398737fadc
1 changed files with 6 additions and 2 deletions
8
.github/workflows/claude-auto-fix-ci.yml
vendored
8
.github/workflows/claude-auto-fix-ci.yml
vendored
|
|
@ -41,18 +41,22 @@ jobs:
|
|||
- name: Get CI failure details
|
||||
id: failure_details
|
||||
uses: actions/github-script@v7
|
||||
env:
|
||||
RUN_ID: ${{ github.event.workflow_run.id }}
|
||||
with:
|
||||
script: |
|
||||
const runId = Number(process.env.RUN_ID);
|
||||
|
||||
const run = await github.rest.actions.getWorkflowRun({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
run_id: ${{ github.event.workflow_run.id }}
|
||||
run_id: runId
|
||||
});
|
||||
|
||||
const jobs = await github.rest.actions.listJobsForWorkflowRun({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
run_id: ${{ github.event.workflow_run.id }}
|
||||
run_id: runId
|
||||
});
|
||||
|
||||
const failedJobs = jobs.data.jobs.filter(job => job.conclusion === 'failure');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue