mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-27 13:28:32 +07:00
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:
2
.github/workflows/sync_docs_analyze.yml
vendored
2
.github/workflows/sync_docs_analyze.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/sync_docs_update.yml
vendored
2
.github/workflows/sync_docs_update.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user