From dfe3bae4da6922bbffa807cef64ea8ff237bbc74 Mon Sep 17 00:00:00 2001 From: Gu Date: Thu, 6 Nov 2025 13:02:16 -0800 Subject: [PATCH] fix: use workflow run ID for artifact naming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Use github.run_id in analyze workflow artifact name - Use github.event.workflow_run.id in update workflow download - This fixes the issue where PR number is not accessible in workflow_run context 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/sync_docs_analyze.yml | 2 +- .github/workflows/sync_docs_update.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync_docs_analyze.yml b/.github/workflows/sync_docs_analyze.yml index 6fbb5b2c..be6781ea 100644 --- a/.github/workflows/sync_docs_analyze.yml +++ b/.github/workflows/sync_docs_analyze.yml @@ -375,7 +375,7 @@ jobs: if: steps.analyze.outputs.has_changes == 'true' uses: actions/upload-artifact@v4 with: - name: docs-sync-analysis-${{ github.event.pull_request.number }} + name: docs-sync-analysis-${{ github.run_id }} path: | /tmp/analysis.json /tmp/changed_files.txt diff --git a/.github/workflows/sync_docs_update.yml b/.github/workflows/sync_docs_update.yml index 1ba19839..3ea342af 100644 --- a/.github/workflows/sync_docs_update.yml +++ b/.github/workflows/sync_docs_update.yml @@ -23,7 +23,7 @@ jobs: - name: Download analysis artifacts uses: actions/download-artifact@v4 with: - name: docs-sync-analysis-${{ github.event.workflow_run.event.pull_request.number }} + name: docs-sync-analysis-${{ github.event.workflow_run.id }} path: /tmp/analysis github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }}