Skip to content

Download artifacts for tag #245

@jvyden

Description

@jvyden

We have two workflows, one for building and one for releasing built artifacts upon a tag release. They're both summoned from one push event, and the release job waits for the other job:

      - name: Wait for builds
        uses: lewagon/[email protected]
        with:
          ref: ${{ github.ref }}
          check-name: 'Build, Test, and Upload Builds'
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          wait-interval: 10
      - name: Download artifacts
        id: download-artifact
        uses: dawidd6/action-download-artifact@v2
        with:
          github_token: ${{secrets.GITHUB_TOKEN}}
          branch: main
          workflow: dotnet.yml
          workflow_conclusion: success
          if_no_artifact_found: fail
          skip_unpack: true

For some reason, downloading the artifact downloads one from a previous push to master instead of downloading from the job we just waited for. I suspect this is because the commit SHAs match. It would be nice if I could specify the tag, so this workflow only considers workflows for that tag.

P.S: Sorry if this issue doesn't make sense, I'm tired 🙃

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