use strategy.job-index to dedup

This commit is contained in:
Ashwin Bharambe 2025-07-31 15:13:27 -07:00
parent 05dfeeb6cc
commit ab10f1f844

View file

@ -188,19 +188,11 @@ runs:
run: | run: |
sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true
- name: Set artifact name
shell: bash
run: |
# Replace colons with dashes in stack-config for artifact naming
suffix="${{ inputs.stack-config }}"
suffix="${suffix//:/-}"
echo "ARTIFACT_NAME_SUFFIX=$suffix" >> $GITHUB_ENV
- name: Upload logs - name: Upload logs
if: ${{ always() }} if: ${{ always() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with: with:
name: logs-${{ github.run_id }}-${{ github.run_attempt || '' }}-${{ inputs.provider }}-${{ inputs.run-vision-tests }}-${{ env.ARTIFACT_NAME_SUFFIX }} name: logs-${{ github.run_id }}-${{ github.run_attempt || '' }}-${{ strategy.job-index }}
path: | path: |
*.log *.log
retention-days: 1 retention-days: 1