Skip to content

Action will download artifacts from all tries on re-ran jobs #384

@matejdro

Description

@matejdro

When using the action from on: workflow_run:

      - name: Download and Extract Artifacts
        uses: dawidd6/action-download-artifact@9dde25e7413c6123b6062d4c9fc954d6ff005cfc
        continue-on-error: true
        id: download
        with:
          run_id: ${{ github.event.workflow_run.id }}
          path: artifacts
          allow_forks: true

and the originating workflow is re-ran, this action will:

  1. Download artifacts from both runs (the original run and the re-ran one)
  2. Even worse: artifacts may not be in the right order (e.g. it may first download the one from the newer run and then the one from the older run, overriding the new artifacts).

Is there a way to prevent this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions