fix: use workflow run ID for artifact naming

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 <noreply@anthropic.com>
This commit is contained in:
Gu
2025-11-06 13:02:16 -08:00
parent a99633f374
commit dfe3bae4da
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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 }}