Fix cross-workflow artifact download using dawidd6/action-download-artifact

- Replace actions/download-artifact@v4 with dawidd6/action-download-artifact@v6
- The default download-artifact action only works within same workflow run
- Third-party action enables downloading artifacts from different workflow
- Both test workflows now download from latest successful tesla-k80-ci.yml run
This commit is contained in:
Shang Chieh Tseng
2025-10-30 12:12:59 +08:00
parent a171c8a087
commit 5895b414f4
2 changed files with 12 additions and 6 deletions

View File

@@ -16,11 +16,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download ollama binary from build workflow - name: Download ollama binary from latest build
uses: actions/download-artifact@v4 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: tesla-k80-ci.yml
name: ollama-binary name: ollama-binary
github-token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
check_artifacts: true
search_artifacts: true
- name: Make ollama binary executable - name: Make ollama binary executable
run: | run: |

View File

@@ -13,11 +13,14 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download ollama binary from build workflow - name: Download ollama binary from latest build
uses: actions/download-artifact@v4 uses: dawidd6/action-download-artifact@v6
with: with:
workflow: tesla-k80-ci.yml
name: ollama-binary name: ollama-binary
github-token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
check_artifacts: true
search_artifacts: true
- name: Make ollama binary executable - name: Make ollama binary executable
run: | run: |